summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2015-01-05 22:49:43 -0500
committerJunio C Hamano <gitster@pobox.com>2015-01-06 11:20:45 -0800
commitd05c77cca2a6768ca03e95bcdd7358eb6af85c1a (patch)
tree5aa32a770e31cd537343af41ce2b7628593be6c5
parent4489a480fdfe53e1ca78eabdab2dee00376814a3 (diff)
downloadgit-d05c77cca2a6768ca03e95bcdd7358eb6af85c1a.tar.gz
t1301: set umask in reflog sharedrepository=group test
The t1301 script sets the umask globally before many of the tests. Most of the tests that care about the umask then set it explicitly at the start of the test. However, one test does not, and relies on the 077 umask setting from earlier tests. This is fragile and can break if another test is added in between. Let's be more explicit. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xt/t1301-shared-repo.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t1301-shared-repo.sh b/t/t1301-shared-repo.sh
index de42d21c92..86ed901e0e 100755
--- a/t/t1301-shared-repo.sh
+++ b/t/t1301-shared-repo.sh
@@ -112,6 +112,7 @@ do
done
test_expect_success POSIXPERM 'git reflog expire honors core.sharedRepository' '
+ umask 077 &&
git config core.sharedRepository group &&
git reflog expire --all &&
actual="$(ls -l .git/logs/refs/heads/master)" &&