From: Jeff King Date: Fri, 1 Apr 2011 14:46:27 +0000 (-0400) Subject: docs: fix filter-branch subdir example for exotic repo names X-Git-Tag: v1.7.4.3~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6cb0186a41335f5e82d1e91abf4ce70938d0a020;p=git.git 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 Signed-off-by: Junio C Hamano --- 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 ---------------------------------------------------------------