@matheusbsbs / matheus-bagliano / commits / 2b0d1033a3
Fork 0

git-svn(1): update instructions for resuming a git-svn clone

git-svn expects its references under refs/remotes/*; but these will not be copied or set by "git clone"; put in this man page the manual fiddling that is required with current git-svn to get this to work. Signed-off-by: Sam Vilain <sam.vilain@catalyst.net.nz> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Sam Vilain committed Jan 25, 2008 at 12:10 UTC 2b0d1033a3af476296af6b5d8f524829c6790c1f
1 file changed +7 -4
Documentation/git-svn.txt
+7 -4
@@ -456,10 +456,13 @@ have each person clone that repository with 'git clone':
456 ------------------------------------------------------------------------
457 # Do the initial import on a server
458 ssh server "cd /pub && git-svn clone http://svn.foo.org/project
459 -# Clone locally
460 - git clone server:/pub/project
461 -# Tell git-svn which branch contains the Subversion commits
462 - git update-ref refs/remotes/git-svn origin/master
459 +# Clone locally - make sure the refs/remotes/ space matches the server
460 + mkdir project
461 + cd project
462 + git-init
463 + git remote add origin server:/pub/project
464 + git config --add remote.origin.fetch=+refs/remotes/*:refs/remotes/*
465 + git fetch
466 # Initialize git-svn locally (be sure to use the same URL and -T/-b/-t options as were used on server)
467 git-svn init http://svn.foo.org/project
468 # Pull the latest changes from Subversion