From: Michael Kerrisk Date: Wed, 17 Sep 2008 12:57:21 GMT Subject: Re: Getting correct tree layout when importing svn repo into git Message-ID: In-Reply-To: <20080917110510.GB13144@atjola.homenet> Hi Björn, D'oh -- the fix was from you too ;-). See below. On Wed, Sep 17, 2008 at 4:05 AM, Björn Steinbrink wrote: > On 2008.09.17 03:38:12 -0700, Michael Kerrisk wrote: >> $ svn list file:///home/mtk/man-pages-rep/tags >> man-pages-2.00 >> man-pages-2.01 >> man-pages-2.02 >> man-pages-2.03 >> ... >> $ svn list file:///home/mtk/man-pages-rep/tags/man-pages-2.00 >> man-pages >> $ svn list file:///home/mtk/man-pages-rep/tags/man-pages-2.01 >> man-pages >> [and so on] >> $ svn list file:///home/mtk/man-pages-rep/branches >> $ >> (i.e., no branches, since this has been a linear svn repo.) > > That means that you also need to pass the "man-pages" suffix for the > tags and branches. > > git svn clone file:///path/to/repo \ > -T trunk/man-pages \ > -b branches/*/man-pages \ > -t tags/*/man-pages > > Might require a more recent git-svn version, not sure about that. Using my current git version, this seems to produce the right result. Thank you! (I guess Michael's solution is essentially equivalent, but I tried yours first.) Thanks everyone! Cheers, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ man-pages online: http://www.kernel.org/doc/man-pages/online_pages.html Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html