Skip to content

Commit 2b0d103

Browse files
samvgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3cf3237 commit 2b0d103

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Documentation/git-svn.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -456,10 +456,13 @@ have each person clone that repository with 'git clone':
456456
------------------------------------------------------------------------
457457
# Do the initial import on a server
458458
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
463466
# Initialize git-svn locally (be sure to use the same URL and -T/-b/-t options as were used on server)
464467
git-svn init http://svn.foo.org/project
465468
# Pull the latest changes from Subversion

0 commit comments

Comments
 (0)