Re: [PATCH] Add SVN->Git conversion example to documentation
- From
Miklos Vajna <vmiklos@frugalware.org>
- Date
- Jun 14, 2008, 19:06 UTC
- Message-ID
- <20080614190648.GF29404@genesis.frugalware.org>
- In-Reply-To
- <20080614180929.GA26449@zakalwe.fi>
On Sat, Jun 14, 2008 at 09:09:29PM +0300, Heikki Orsila <heikki.orsila@iki.fi> wrote:
> +------------------------------------------------------------------------ > +# Convert all branches of an SVN repository to a Git repository: > + > + git svn clone --no-metadata -A authors.txt SVN_URL foo.git
Don't you need -s here?
Two other minor notes:
1) I would add an example on how to update such a repo in case it will be a mirror, like 'git --bare svn fetch'.
2) I would mention that one still needs a trick if he/she wants to allow others to clone this repo, with something like:
git config remote.origin.url . git config remote.origin.fetch +refs/remotes/tags/*:refs/tags/* git config --add remote.origin.fetch +refs/remotes/*:refs/heads/* git fetch