Use a temporary index for git commit --interactive
[gitweb.git] / Documentation / git-filter-branch.txt
index 03c76c717ac6c41edfaaed47fa9798344e5e8f94..9dc1f2a94708d40daf428a427dd2ea4256cc172a 100644 (file)
@@ -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
 ---------------------------------------------------------------