Skip to content

Commit d89c1df

Browse files
peffgitster
authored andcommitted
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>
1 parent 5f7c643 commit d89c1df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-filter-branch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ while read commit parents; do
281281
die "Could not checkout the index"
282282
# files that $commit removed are now still in the working tree;
283283
# remove them, else they would be added again
284-
git ls-files -z --others | xargs -0 rm -f
284+
git clean -q -f -x
285285
eval "$filter_tree" < /dev/null ||
286286
die "tree filter failed: $filter_tree"
287287

0 commit comments

Comments
 (0)