]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t1301: set umask in reflog sharedrepository=group test
authorJeff King <peff@peff.net>
Tue, 6 Jan 2015 03:49:43 +0000 (22:49 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 6 Jan 2015 19:20:45 +0000 (11:20 -0800)
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>
t/t1301-shared-repo.sh

index de42d21c922045415abedf3c81163682d0754eb5..86ed901e0e8dd6bb91b375d184d903ed2a0ff6a5 100755 (executable)
@@ -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)" &&