X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft4020-diff-external.sh;h=637b4e19d52e81cf1472a4ed9dcfb0c9ff00da2b;hb=c74815261225e5068490583b08303d158837ab9e;hp=ed3bd5b3fe7c8b5ca52067e3015e0d770ee79bf2;hpb=04d70bebe72c264a1c4d26cbe306672e3e4098e3;p=git.git diff --git a/t/t4020-diff-external.sh b/t/t4020-diff-external.sh index ed3bd5b3f..637b4e19d 100755 --- a/t/t4020-diff-external.sh +++ b/t/t4020-diff-external.sh @@ -99,11 +99,12 @@ test_expect_success 'no diff with -diff' ' git diff | grep Binary ' -echo NULZbetweenZwords | tr Z '\0' > file +echo NULZbetweenZwords | perl -pe 'y/Z/\000/' > file test_expect_success 'force diff with "diff"' ' echo >.gitattributes "file diff" && - git diff | grep -a second + git diff >actual && + test_cmp ../t4020/diff.NUL actual ' test_done