summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3cf3237)
raw | patch | inline | side by side (parent: 3cf3237)
author | Sam Vilain <sam@vilain.net> | |
Thu, 24 Jan 2008 23:10:02 +0000 (12:10 +1300) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 26 Jan 2008 06:31:52 +0000 (22:31 -0800) |
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>
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>
Documentation/git-svn.txt | patch | blob | history |
index e1a1d46a9fefd8d2d34f118b5e2eefce4fc7575a..b1d527f74cd72a7c749f1067a91a6d2c6b6235d3 100644 (file)
------------------------------------------------------------------------
# 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