From: Markus Heidelberg Date: Sat, 03 Apr 2010 10:11:57 GMT Subject: [PATCH] t7508: add a test for "git status" in a read-only repository Message-ID: <1270289517-32680-1-git-send-email-markus.heidelberg@web.de> In-Reply-To: <7v1vex9mur.fsf@alter.siamese.dyndns.org> Signed-off-by: Markus Heidelberg --- 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