summaryrefslogtreecommitdiff
path: root/t/t7508-status.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-06-28 12:53:33 -0700
committerJunio C Hamano <gitster@pobox.com>2018-06-28 12:53:33 -0700
commit18404434bf406f6a6f892ed73320c5cf9cc187dd (patch)
tree52ff19a64024f2c6bed5b308adf2ca97daca9ed6 /t/t7508-status.sh
parent6da2d9595161441cbed1b1f579b8dd46970a8e20 (diff)
parent037714252f74ae77e816018e43b2504a1b057246 (diff)
downloadgit-18404434bf406f6a6f892ed73320c5cf9cc187dd.tar.gz
Merge branch 'jc/clean-after-sanity-tests'
test cleanup. * jc/clean-after-sanity-tests: tests: clean after SANITY tests
Diffstat (limited to 't/t7508-status.sh')
-rwxr-xr-xt/t7508-status.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/t/t7508-status.sh b/t/t7508-status.sh
index 18a40257fb..e1f11293e2 100755
--- a/t/t7508-status.sh
+++ b/t/t7508-status.sh
@@ -1099,6 +1099,7 @@ EOF
'
test_expect_success POSIXPERM,SANITY 'status succeeds in a read-only repository' '
+ test_when_finished "chmod 775 .git" &&
(
chmod a-w .git &&
# make dir1/tracked stat-dirty
@@ -1108,9 +1109,6 @@ test_expect_success POSIXPERM,SANITY 'status succeeds in a read-only repository'
# make sure "status" succeeded without writing index out
git diff-files | grep dir1/tracked
)
- status=$?
- chmod 775 .git
- (exit $status)
'
(cd sm && echo > bar && git add bar && git commit -q -m 'Add bar') && git add sm