]> asedeno.scripts.mit.edu Git - git.git/blobdiff - git-filter-branch.sh
filter-branch: don't use xargs -0
[git.git] / git-filter-branch.sh
index 59cf023d5da068eaad4a1cef661015a42c34e703..efef732202fb10b632b36c5080bcec2302217a7d 100755 (executable)
@@ -281,7 +281,7 @@ while read commit parents; do
                        die "Could not checkout the index"
                # files that $commit removed are now still in the working tree;
                # remove them, else they would be added again
-               git ls-files -z --others | xargs -0 rm -f
+               git clean -q -f -x
                eval "$filter_tree" < /dev/null ||
                        die "tree filter failed: $filter_tree"