Skip to content

Commit d05c77c

Browse files
peffgitster
authored andcommitted
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>
1 parent 4489a48 commit d05c77c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

t/t1301-shared-repo.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ do
112112
done
113113

114114
test_expect_success POSIXPERM 'git reflog expire honors core.sharedRepository' '
115+
umask 077 &&
115116
git config core.sharedRepository group &&
116117
git reflog expire --all &&
117118
actual="$(ls -l .git/logs/refs/heads/master)" &&

0 commit comments

Comments
 (0)