diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-02-02 13:36:56 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-02-02 13:36:56 -0800 |
commit | f1fac407f5657ca9a8aa6d3909daa1e7e3036404 (patch) | |
tree | 8eb882998cbd6c4dff1e0468e542c50f7bee769e /t/t0001-init.sh | |
parent | ce050477fbb58d02b83830597be1e87c15553071 (diff) | |
parent | d549d21307d980aeaaca54fe540e6b726f99dca1 (diff) | |
download | git-f1fac407f5657ca9a8aa6d3909daa1e7e3036404.tar.gz |
Merge branch 'mm/reset-facl-before-umask-test'
Test tweaks for those who have default ACL in their git source tree
that interfere with the umask test.
* mm/reset-facl-before-umask-test:
t0001: don't let a default ACL interfere with the umask test
Diffstat (limited to 't/t0001-init.sh')
-rwxr-xr-x | t/t0001-init.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/t/t0001-init.sh b/t/t0001-init.sh index b8fc588b19..e424de5363 100755 --- a/t/t0001-init.sh +++ b/t/t0001-init.sh @@ -258,6 +258,9 @@ test_expect_success POSIXPERM 'init creates a new deep directory (umask vs. shar ( # Leading directories should honor umask while # the repository itself should follow "shared" + mkdir newdir && + # Remove a default ACL if possible. + (setfacl -k newdir 2>/dev/null || true) && umask 002 && git init --bare --shared=0660 newdir/a/b/c && test_path_is_dir newdir/a/b/c/refs && |