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 <matt@mattmccutchen.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Matt McCutchen committed
Oct 16, 2008 at 22:32 UTC
8ed0a740dd42bd0724aebed6e3b07c4ea2a2d5e8
1 file changed
+3
t/t1301-shared-repo.sh
+3
@@ -7,6 +7,9 @@ test_description='Test shared repository initialization'
7
8
. ./test-lib.sh
9
10
+# Remove a default ACL from the test dir if possible.
11
+setfacl -k . 2>/dev/null
12
+
13
# User must have read permissions to the repo -> failure on --shared=0400
14
test_expect_success 'shared = 0400 (faulty permission u-w)' '
15
mkdir sub && (