{"thread":{"id":"11941","subject":"[PATCH 2/2] Documentation/git-svn.txt: Fix \"git clone\" example","startedAt":"2008-02-07T14:52:31Z","lastAt":"2008-02-07T14:52:31Z","messageCount":1,"participants":["Peter Harris"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"67811","messageId":"alpine.OSX.1.00.0802070949080.314@mac.local","threadId":"11941","inReplyTo":null,"subject":"[PATCH 2/2] Documentation/git-svn.txt: Fix \"git clone\" example","fromName":"Peter Harris","fromEmail":"git@peter.is-a-geek.org","sentAt":"2008-02-07T14:52:31Z","receivedAt":"2008-02-07T14:52:31Z","isPatch":true,"sender":{"key":"git@peter.is-a-geek.org","avatar":null},"body":"Subject: [PATCH] Documentation/git-svn.txt: Fix \"git clone\" example\n\nIf you don't \"git reset --hard\" to create master, then the \"git svn rebase\"\nstep fails.\n\nAlso add \"-s\" to use a standard layout, and remove the bogus '=' from\nthe \"git config\" step.\n\nSigned-off-by: Peter <git@peter.is-a-geek.org>\n---\n\nThis time with a correctly spelled log message.\n\n Documentation/git-svn.txt |    8 +++++---\n 1 files changed, 5 insertions(+), 3 deletions(-)\n\ndiff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt\nindex f94d0f9..b293a66 100644\n--- a/Documentation/git-svn.txt\n+++ b/Documentation/git-svn.txt\n@@ -455,16 +455,18 @@ have each person clone that repository with 'git clone':\n \n ------------------------------------------------------------------------\n # Do the initial import on a server\n-\tssh server \"cd /pub && git svn clone http://svn.foo.org/project\n+\tssh server \"cd /pub && git svn clone -s http://svn.foo.org/project\n # Clone locally - make sure the refs/remotes/ space matches the server\n \tmkdir project\n \tcd project\n \tgit init\n \tgit remote add origin server:/pub/project\n-\tgit config --add remote.origin.fetch=+refs/remotes/*:refs/remotes/*\n+\tgit config --add remote.origin.fetch +refs/remotes/*:refs/remotes/*\n \tgit fetch\n # Initialize git-svn locally (be sure to use the same URL and -T/-b/-t options as were used on server)\n-\tgit svn init http://svn.foo.org/project\n+\tgit svn init -s http://svn.foo.org/project\n+# Check out the svn branch you want to work on\n+\tgit reset --hard trunk\n # Pull the latest changes from Subversion\n \tgit svn rebase\n ------------------------------------------------------------------------\n-- \n1.5.3.7\n"}]}