From: Dmitry Potapov Date: Tue, 16 Sep 2008 23:20:26 GMT Subject: Re: Getting correct tree layout when importing svn repo into git Message-ID: <37fcd2780809161620v38d9ade0sc1a2715f79501c6f@mail.gmail.com> In-Reply-To: On Wed, Sep 17, 2008 at 2:05 AM, Michael Kerrisk wrote: > > I'm currently trying to import an svn repository, along with its tags, > into git, and everything seems okay except that after the import I > expect to have the following structure to my checked out repository: > > [root-dir] > .git > > > But instead I end up with > > [root-dir] > .git > man-pages <-- name of my svn project > > > I've tried out a few different command-line flag settings but so far I > haven't managed to get the desired layout. I guess that I'm missing > something trivial, but I haven't worked out what it is so far. > > The commands I'm using to do the import are: > > $ git svn init file:///home/mtk/man-pages-rep/ -t tags -T trunk -b branches Probably, you want to run: $ git svn init file:///home/mtk/man-pages-rep/ -t tags -T trunk/man-pages -b branches Dmitry