summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2352570)
raw | patch | inline | side by side (parent: 2352570)
author | Jeff King <peff@peff.net> | |
Fri, 1 Apr 2011 14:46:27 +0000 (10:46 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 1 Apr 2011 19:17:45 +0000 (12:17 -0700) |
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>
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>
Documentation/git-filter-branch.txt | patch | blob | history |
index 796e7489ff7ee573a65647f4de33df932bd1bea1..aa69b8ef1320c480bee1c6cfa715722879210c7e 100644 (file)
'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
---------------------------------------------------------------