Signed-off-by: Markus Heidelberg <markus.heidelberg@xxxxxx> --- t/t7508-status.sh | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/t/t7508-status.sh b/t/t7508-status.sh index c317bde..baa8d7b 100755 --- a/t/t7508-status.sh +++ b/t/t7508-status.sh @@ -703,4 +703,14 @@ test_expect_success 'commit --dry-run submodule summary (--amend)' ' test_cmp expect output ' +test_expect_success POSIXPERM 'status succeeds in a read-only repository' ' + ( + chmod a-w .git && + git status + ) + status=$? + chmod 775 .git + (exit $status) +' + test_done -- 1.7.0.4.304.gc2d16 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html