Skip to contentSkip to conversation

fix git config example syntax

PATCH New Joey Hess 1 participant 1 message Jun 15, 2016 Documentation

lore
Share & tools
lore

Joey Hess

author
#0 lore raw

PATCH 1/1 fix git config example syntax

git-config expects a space, not '=' between option and value.

Also, quote the value since it contains globs, which some shells will not pass through unchanged, or will abort if the glob doesn't expand.

---
 Documentation/git-svn.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Documentation/git-svn.txt +1 -1
index 97bed54..c350ad0 100644
@@ -513,7 +513,7 @@ have each person clone that repository with 'git clone':
 	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
Signature · 1 line
1.5.5.4