Code

docs: fix filter-branch subdir example for exotic repo names
[git.git] / Documentation / git-filter-branch.txt
index 796e7489ff7ee573a65647f4de33df932bd1bea1..aa69b8ef1320c480bee1c6cfa715722879210c7e 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
 ---------------------------------------------------------------