X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=inline;f=t%2Ft4012-diff-binary.sh;h=bc46563afc607e6fba9acbd2773d88207c878981;hb=dfe0171c4e78f8c392514a825c363251794fba5d;hp=3cf5b5c4ea05d861d75aa146a52d7d273dcaa4cb;hpb=f29d669a91b2c8f1c68c1f4fb10f03456a997fa8;p=git.git diff --git a/t/t4012-diff-binary.sh b/t/t4012-diff-binary.sh index 3cf5b5c4e..bc46563af 100755 --- a/t/t4012-diff-binary.sh +++ b/t/t4012-diff-binary.sh @@ -77,17 +77,13 @@ test_expect_success 'apply binary patch' \ tree1=`git write-tree` && test "$tree1" = "$tree0"' -q_to_nul() { - perl -pe 'y/Q/\000/' -} - nul_to_q() { perl -pe 'y/\000/Q/' } test_expect_success 'diff --no-index with binary creation' ' echo Q | q_to_nul >binary && - (:# hide error code from diff, which just indicates differences + (: hide error code from diff, which just indicates differences git diff --binary --no-index /dev/null binary >current || true ) &&