From: Jeff King Date: Wed, 12 Mar 2008 21:41:02 +0000 (-0400) Subject: filter-branch: don't use xargs -0 X-Git-Tag: v1.5.5-rc0~5^2~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d89c1df;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/git-filter-branch.sh b/git-filter-branch.sh index 59cf023d5..efef73220 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"