@matheusbsbs / matheus-bagliano / commits / 26ec126a91
Fork 0

Fix t3701 if core.filemode disabled

[jc: squashed in suggestions from Jeff King] Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Alex Riesen committed May 20, 2008 at 23:59 UTC 26ec126a9166be39f79e746a3a8c92205c983820
1 file changed +7
t/t3701-add-interactive.sh
+7
@@ -66,6 +66,11 @@ test_expect_success 'revert works (commit)' '
66 grep "unchanged *+3/-0 file" output
67 '
68
69 +if test "$(git config --bool core.filemode)" = false
70 +then
71 + say 'skipping filemode tests (filesystem does not properly support modes)'
72 +else
73 +
74 test_expect_success 'patch does not affect mode' '
75 git reset --hard &&
76 echo content >>file &&
@@ -84,5 +89,7 @@ test_expect_success 'stage mode but not hunk' '
89 git diff file | grep "+content"
90 '
91
92 +fi
93 +# end of tests disabled when filemode is not usable
94
95 test_done