@matheusbsbs / matheus-bagliano / commits / b10ee7606e
Fork 0

t7400: barf if git-submodule removes or replaces a file

The test for an unmolested file wouldn't fail properly if the file had been removed or replaced by something other than a regular file. This fixes it. Signed-off-by: Lars Hjemli <hjemli@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Lars Hjemli committed Jun 11, 2007 at 21:12 UTC b10ee7606e14265c6116639aafccb863b77043f5
1 file changed +1 -1
t/t7400-submodule-basic.sh
+1 -1
@@ -72,7 +72,7 @@ test_expect_success 'update should fail when path is used by a file' '
72 then
73 echo "[OOPS] update should have failed"
74 false
75 - elif test -f lib && test "$(cat lib)" != "hello"
75 + elif test "$(cat lib)" != "hello"
76 then
77 echo "[OOPS] update failed but lib file was molested"
78 false