@matheusbsbs / matheus-bagliano / commits / d89c1dfac9
Fork 0

filter-branch: don't use xargs -0

Some versions of xargs don't understand "-0"; fortunately in this case we can get the same effect by using "git clean". Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Mar 12, 2008 at 17:41 UTC d89c1dfac939623a269f60d4e27e3a2929dca29c
1 file changed +1 -1
git-filter-branch.sh
+1 -1
@@ -281,7 +281,7 @@ while read commit parents; do
281 die "Could not checkout the index"
282 # files that $commit removed are now still in the working tree;
283 # remove them, else they would be added again
284 - git ls-files -z --others | xargs -0 rm -f
284 + git clean -q -f -x
285 eval "$filter_tree" < /dev/null ||
286 die "tree filter failed: $filter_tree"
287