diff options
author | Matt McCutchen <matt@mattmccutchen.net> | 2008-10-16 22:32:14 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-10-16 19:37:27 -0700 |
commit | 8ed0a740dd42bd0724aebed6e3b07c4ea2a2d5e8 (patch) | |
tree | 00f30424db59d435032961f5df9aead28334146a /t/t1301-shared-repo.sh | |
parent | 5782566d7f2847bd94e33fd26c8a961e887ec10a (diff) | |
download | git-8ed0a740dd42bd0724aebed6e3b07c4ea2a2d5e8.tar.gz |
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>
Diffstat (limited to 't/t1301-shared-repo.sh')
-rwxr-xr-x | t/t1301-shared-repo.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/t/t1301-shared-repo.sh b/t/t1301-shared-repo.sh index dc85e8b60a..2275caa317 100755 --- a/t/t1301-shared-repo.sh +++ b/t/t1301-shared-repo.sh @@ -7,6 +7,9 @@ test_description='Test shared repository initialization' . ./test-lib.sh +# Remove a default ACL from the test dir if possible. +setfacl -k . 2>/dev/null + # User must have read permissions to the repo -> failure on --shared=0400 test_expect_success 'shared = 0400 (faulty permission u-w)' ' mkdir sub && ( |