threads / patch / 14205

patchfix git config example syntax

Subject: [PATCH] fix git config example syntax

## tl;dr

One message between Jun 28, 2008 and Jun 28, 2008. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Joey Hess· Jun 28, 2008, 20:02 UTC · lore
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.

Signed-off-by: Joey Hess <joey@kitenet.net>
---
 Documentation/git-svn.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to Documentation/git-svn.txt +1 −1
diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt
index 97bed54..c350ad0 100644
--- a/Documentation/git-svn.txt
+++ b/Documentation/git-svn.txt
@@ -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
-- 
1.5.5.4

← back to recent threads