summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2011-04-01 14:46:27 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-04-01 19:17:45 (GMT)
commit6cb0186a41335f5e82d1e91abf4ce70938d0a020 (patch)
treef484c3ec6cfd1e8103e01af1d8e771f48e3f96cb /Documentation
parent2352570bf43368f3d3931f7b24bb7fd44e68eef3 (diff)
downloadgit-6cb0186a41335f5e82d1e91abf4ce70938d0a020.zip
git-6cb0186a41335f5e82d1e91abf4ce70938d0a020.tar.gz
git-6cb0186a41335f5e82d1e91abf4ce70938d0a020.tar.bz2
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>
Diffstat (limited to 'Documentation')
-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 796e748..aa69b8e 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
---------------------------------------------------------------