summaryrefslogtreecommitdiffstats
path: root/git-svn.txt
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2008-01-27 08:23:46 +0000
committerJunio C Hamano <junio@hera.kernel.org>2008-01-27 08:23:46 +0000
commitf7bb669c0b2263dd46cbcf60527b88293ae0bfd1 (patch)
treec2a3399d23ce54078ed6fef864481b266d9384fc /git-svn.txt
parentebc53dcb88aa848843f12d4f9c14910e3b763613 (diff)
downloadgit-htmldocs-f7bb669c0b2263dd46cbcf60527b88293ae0bfd1.tar.gz
Autogenerated HTML docs for v1.5.4-rc5
Diffstat (limited to 'git-svn.txt')
-rw-r--r--git-svn.txt11
1 files changed, 7 insertions, 4 deletions
diff --git a/git-svn.txt b/git-svn.txt
index e1a1d46a9..b1d527f74 100644
--- a/git-svn.txt
+++ b/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