# [PATCH 2/2] Documentation/git-svn.txt: Fix "git clone" example

3 messages from 2008-02-06 to 2008-02-07. Participants: Peter Harris, Karl Hasselström.
Thread: https://gitlist.dev/t/11925

## Peter Harris, 2008-02-06 23:45

Subject: [PATCH 2/2] Documentation/git-svn.txt: Fix "git clone" example
Message-ID: <alpine.OSX.1.00.0802061843420.27901@mac.local>
URL: https://gitlist.dev/e/alpine.OSX.1.00.0802061843420.27901%40mac.local

```

If you don't "git reset --hard" to create master, then the "git svn rebase"
step fails.

Also add "-s" to use a satandard layout, and remove the bogus '=' from
the "git config" step.

Signed-off-by: Peter <git@peter.is-a-geek.org>
---
 Documentation/git-svn.txt |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt
index f94d0f9..b293a66 100644
--- a/Documentation/git-svn.txt
+++ b/Documentation/git-svn.txt
@@ -455,16 +455,18 @@ 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
+	ssh server "cd /pub && git svn clone -s http://svn.foo.org/project
 # 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 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
+	git svn init -s http://svn.foo.org/project
+# Check out the svn branch you want to work on
+	git reset --hard trunk
 # Pull the latest changes from Subversion
 	git svn rebase
 ------------------------------------------------------------------------
-- 
1.5.3.7

```

## Karl Hasselström, 2008-02-07 14:34

Subject: Re: [PATCH 2/2] Documentation/git-svn.txt: Fix "git clone" example
Message-ID: <20080207143443.GA24687@diana.vm.bytemark.co.uk>
URL: https://gitlist.dev/e/20080207143443.GA24687%40diana.vm.bytemark.co.uk
In-Reply-To: <alpine.OSX.1.00.0802061843420.27901@mac.local>

```
On 2008-02-06 18:45:03 -0500, Peter Harris wrote:

> satandard layout

Non-satandard spelling.

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle

```

## Peter Harris, 2008-02-07 14:52

Subject: Re: [PATCH 2/2] Documentation/git-svn.txt: Fix "git clone" example
Message-ID: <eaa105840802070652w55570f8ar3a6c4e0d00aa499d@mail.gmail.com>
URL: https://gitlist.dev/e/eaa105840802070652w55570f8ar3a6c4e0d00aa499d%40mail.gmail.com
In-Reply-To: <20080207143443.GA24687@diana.vm.bytemark.co.uk>

```
On Feb 7, 2008 9:34 AM, Karl Hasselström <kha@treskal.com> wrote:
> On 2008-02-06 18:45:03 -0500, Peter Harris wrote:
> > satandard layout
>
> Non-satandard spelling.

Oh, the embarrassment.

An email with corrected spelling is on its way.

Peter Harris

```
