t0060: Fix tests on Windows
[gitweb.git] / t / t4020-diff-external.sh
index 22ef7d44b08ac7ec20e799a194e27205c794c290..281680d95afacb291d56d9d7f23efed1f3169e93 100755 (executable)
@@ -125,7 +125,15 @@ echo NULZbetweenZwords | perl -pe 'y/Z/\000/' > file
 test_expect_success 'force diff with "diff"' '
        echo >.gitattributes "file diff" &&
        git diff >actual &&
-       test_cmp ../t4020/diff.NUL actual
+       test_cmp "$TEST_DIRECTORY"/t4020/diff.NUL actual
+'
+
+test_expect_success 'GIT_EXTERNAL_DIFF with more than one changed files' '
+       echo anotherfile > file2 &&
+       git add file2 &&
+       git commit -m "added 2nd file" &&
+       echo modified >file2 &&
+       GIT_EXTERNAL_DIFF=echo git diff
 '
 
 test_done