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

Subsystems: documentation, the rest

DORMANTno replies

3 messages, 2 authors, 2016-06-15 · open the first message on its own page

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

From: Peter Harris <hidden>
Date: 2016-06-15 22:44:11

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 <redacted>
---
 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

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

From: Karl Hasselström <hidden>
Date: 2016-06-15 22:44:11

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

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

From: Peter Harris <hidden>
Date: 2016-06-15 22:44:11

On Feb 7, 2008 9:34 AM, Karl Hasselström [off-list ref] wrote:
On 2008-02-06 18:45:03 -0500, Peter Harris wrote:
quoted
satandard layout
Non-satandard spelling.
Oh, the embarrassment.

An email with corrected spelling is on its way.

Peter Harris
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help