提交 26ec126a 编写于 作者: A Alex Riesen 提交者: Junio C Hamano

Fix t3701 if core.filemode disabled

[jc: squashed in suggestions from Jeff King]
Signed-off-by: NAlex Riesen <raa.lkml@gmail.com>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 4be1fe1b
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册