X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Fdiff-lib.sh;h=28b941c493ca96b726c6cde27660e987fc31bedc;hb=efb779f8873e5aa36be29a4e551186c62c1b580c;hp=4624fe654c2515afe14e9e05402ac9ce78322772;hpb=7468c297fa88f0035dc719e996b93b1404eee6e3;p=git.git diff --git a/t/diff-lib.sh b/t/diff-lib.sh index 4624fe654..28b941c49 100644 --- a/t/diff-lib.sh +++ b/t/diff-lib.sh @@ -21,8 +21,8 @@ compare_diff_raw_z () { # Also we do not check SHA1 hash generation in this test, which # is a job for t0000-basic.sh - tr '\0' '\012' <"$1" | sed -e "$sanitize_diff_raw_z" >.tmp-1 - tr '\0' '\012' <"$2" | sed -e "$sanitize_diff_raw_z" >.tmp-2 + perl -pe 'y/\000/\012/' <"$1" | sed -e "$sanitize_diff_raw_z" >.tmp-1 + perl -pe 'y/\000/\012/' <"$2" | sed -e "$sanitize_diff_raw_z" >.tmp-2 git diff .tmp-1 .tmp-2 && rm -f .tmp-1 .tmp-2 }