git-svn: fix handling of even funkier branch names
[gitweb.git] / t / t4020-diff-external.sh
index bf8f778a471b7fdb21b6e6df473222593439ba34..dfe3fbc74b96fff50160c032f0a65ba54f9ad1b2 100755 (executable)
@@ -103,7 +103,8 @@ 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 "$TEST_DIRECTORY"/t4020/diff.NUL actual
 '
 
 test_done