aboutsummaryrefslogtreecommitdiff
path: root/t/t3701-add-interactive.sh
diff options
context:
space:
mode:
authorAlex Riesen <raa.lkml@gmail.com>2008-05-20 23:59:32 +0200
committerJunio C Hamano <gitster@pobox.com>2008-05-21 11:20:34 -0700
commit26ec126a9166be39f79e746a3a8c92205c983820 (patch)
tree762dac54cb340f805179b0eba7e4de8d3bad69dc /t/t3701-add-interactive.sh
parent4be1fe1b944e568f47efcb9d1beb8639f50b723f (diff)
downloadgit-26ec126a9166be39f79e746a3a8c92205c983820.tar.gz
git-26ec126a9166be39f79e746a3a8c92205c983820.tar.xz
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>
Diffstat (limited to 't/t3701-add-interactive.sh')
-rwxr-xr-xt/t3701-add-interactive.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t3701-add-interactive.sh b/t/t3701-add-interactive.sh
index f15be93e7..fae64eae9 100755
--- a/t/t3701-add-interactive.sh
+++ b/t/t3701-add-interactive.sh
@@ -66,6 +66,11 @@ test_expect_success 'revert works (commit)' '
grep "unchanged *+3/-0 file" output
'
+if test "$(git config --bool core.filemode)" = false
+then
+ say 'skipping filemode tests (filesystem does not properly support modes)'
+else
+
test_expect_success 'patch does not affect mode' '
git reset --hard &&
echo content >>file &&
@@ -84,5 +89,7 @@ test_expect_success 'stage mode but not hunk' '
git diff file | grep "+content"
'
+fi
+# end of tests disabled when filemode is not usable
test_done