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 testmaint
commit
f1fac407f5
|
|
@ -258,6 +258,9 @@ test_expect_success POSIXPERM 'init creates a new deep directory (umask vs. shar
|
||||||
(
|
(
|
||||||
# Leading directories should honor umask while
|
# Leading directories should honor umask while
|
||||||
# the repository itself should follow "shared"
|
# the repository itself should follow "shared"
|
||||||
|
mkdir newdir &&
|
||||||
|
# Remove a default ACL if possible.
|
||||||
|
(setfacl -k newdir 2>/dev/null || true) &&
|
||||||
umask 002 &&
|
umask 002 &&
|
||||||
git init --bare --shared=0660 newdir/a/b/c &&
|
git init --bare --shared=0660 newdir/a/b/c &&
|
||||||
test_path_is_dir newdir/a/b/c/refs &&
|
test_path_is_dir newdir/a/b/c/refs &&
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue