summaryrefslogtreecommitdiff
path: root/Documentation/git-svn.txt
diff options
context:
space:
mode:
authorSam Vilain <sam@vilain.net>2008-01-24 23:10:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-01-26 06:31:52 (GMT)
commit2b0d1033a3af476296af6b5d8f524829c6790c1f (patch)
tree764c6cf9cd2d0b1f9752b17ab7fe3f399861f501 /Documentation/git-svn.txt
parent3cf3237400f70329525d1085021910b4b76f8670 (diff)
downloadgit-2b0d1033a3af476296af6b5d8f524829c6790c1f.zip
git-2b0d1033a3af476296af6b5d8f524829c6790c1f.tar.gz
git-2b0d1033a3af476296af6b5d8f524829c6790c1f.tar.bz2
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>
Diffstat (limited to 'Documentation/git-svn.txt')
-rw-r--r--Documentation/git-svn.txt11
1 files changed, 7 insertions, 4 deletions
diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt
index e1a1d46..b1d527f 100644
--- a/Documentation/git-svn.txt
+++ b/Documentation/git-svn.txt
@@ -456,10 +456,13 @@ have each person clone that repository with 'git clone':
------------------------------------------------------------------------
# Do the initial import on a server
ssh server "cd /pub && git-svn clone http://svn.foo.org/project
-# Clone locally
- git clone server:/pub/project
-# Tell git-svn which branch contains the Subversion commits
- git update-ref refs/remotes/git-svn origin/master
+# Clone locally - make sure the refs/remotes/ space matches the server
+ mkdir project
+ cd project
+ git-init
+ git remote add origin server:/pub/project
+ git config --add remote.origin.fetch=+refs/remotes/*:refs/remotes/*
+ git fetch
# Initialize git-svn locally (be sure to use the same URL and -T/-b/-t options as were used on server)
git-svn init http://svn.foo.org/project
# Pull the latest changes from Subversion