X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft3701-add-interactive.sh;h=fae64eae9f9ff9b34b935e8556df61d2093425cf;hb=196821f440d46029f0399a7d97c0cfc78a870244;hp=f15be93e7709acbb517bb85020d4d6b94a50f725;hpb=018465d998a02376ba62e2de3ac707bc98322141;p=git.git 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