aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2011-04-01 10:46:27 -0400
committerJunio C Hamano <gitster@pobox.com>2011-04-01 12:17:45 -0700
commit6cb0186a41335f5e82d1e91abf4ce70938d0a020 (patch)
treef484c3ec6cfd1e8103e01af1d8e771f48e3f96cb
parent2352570bf43368f3d3931f7b24bb7fd44e68eef3 (diff)
downloadgit-6cb0186a41335f5e82d1e91abf4ce70938d0a020.tar.gz
git-6cb0186a41335f5e82d1e91abf4ce70938d0a020.tar.xz
docs: fix filter-branch subdir example for exotic repo names
The GIT_INDEX_FILE variable we get from git has the full path to the repo, which may contain spaces. When we use it in our shell snippet, it needs to be quoted. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--Documentation/git-filter-branch.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/git-filter-branch.txt b/Documentation/git-filter-branch.txt
index 796e7489f..aa69b8ef1 100644
--- a/Documentation/git-filter-branch.txt
+++ b/Documentation/git-filter-branch.txt
@@ -361,7 +361,7 @@ git filter-branch --index-filter \
'git ls-files -s | sed "s-\t\"*-&newsubdir/-" |
GIT_INDEX_FILE=$GIT_INDEX_FILE.new \
git update-index --index-info &&
- mv $GIT_INDEX_FILE.new $GIT_INDEX_FILE' HEAD
+ mv "$GIT_INDEX_FILE.new" "$GIT_INDEX_FILE"' HEAD
---------------------------------------------------------------