Use the modern syntax of git-diff-files in t2002-checkout-cache-u.sh
As a nice side effect it also fixes t2002-checkout-cache-u.sh on FreeBSD 4, /bin/sh of which has problems interpreting "! command" construction. Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Alex Riesen committed
Apr 27, 2008 at 13:31 UTC
97ad535b01f7c4e960298aabe16979ad92f26d4f
1 file changed
+2
-2
t/t2002-checkout-cache-u.sh
+2
-2
@@ -21,13 +21,13 @@ test_expect_success \
21
rm -f path0 &&
22
git read-tree $t &&
23
git checkout-index -f -a &&
24
-! git diff-files | diff - /dev/null'
24
+test_must_fail git diff-files --exit-code'
25
26
test_expect_success \
27
'with -u, git checkout-index picks up stat information from new files.' '
28
rm -f path0 &&
29
git read-tree $t &&
30
git checkout-index -u -f -a &&
31
-git diff-files | diff - /dev/null'
31
+git diff-files --exit-code'
32
33
test_done