summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2008-03-12 17:41:02 -0400
committerJunio C Hamano <gitster@pobox.com>2008-03-13 00:57:53 -0700
commitd89c1dfac939623a269f60d4e27e3a2929dca29c (patch)
tree6268560c0ebae5ed505de809d6cce31bdddfe295
parent5f7c643afe8da21c82762f872632d6407530f9e8 (diff)
downloadgit-d89c1dfac939623a269f60d4e27e3a2929dca29c.tar.gz
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>
-rwxr-xr-xgit-filter-branch.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-filter-branch.sh b/git-filter-branch.sh
index 59cf023d5d..efef732202 100755
--- a/git-filter-branch.sh
+++ b/git-filter-branch.sh
@@ -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"