Skip to content

Commit 8ed0a74

Browse files
mattmccutchengitster
authored andcommitted
t1301-shared-repo.sh: don't let a default ACL interfere with the test
This test creates files with several different umasks and expects their permissions to be initialized according to the umask, so a default ACL on the trash directory (which overrides the umask for files created in that directory) causes the test to fail. To avoid that, remove the default ACL if possible with setfacl(1). Signed-off-by: Matt McCutchen <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5782566 commit 8ed0a74

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

t/t1301-shared-repo.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ test_description='Test shared repository initialization'
77

88
. ./test-lib.sh
99

10+
# Remove a default ACL from the test dir if possible.
11+
setfacl -k . 2>/dev/null
12+
1013
# User must have read permissions to the repo -> failure on --shared=0400
1114
test_expect_success 'shared = 0400 (faulty permission u-w)' '
1215
mkdir sub && (

0 commit comments

Comments
 (0)