Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'mm/reset-facl-before-umask-test'
author
Junio C Hamano
<gitster@pobox.com>
Thu, 2 Feb 2017 21:36:56 +0000
(13:36 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 2 Feb 2017 21:36:56 +0000
(13:36 -0800)
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
t/t0001-init.sh
patch
|
blob
|
history
raw
(from parent 1:
ce05047
)
diff --git
a/t/t0001-init.sh
b/t/t0001-init.sh
index b8fc588b1922760ade8502fda3dc465f6ebf2887..e424de5363848233d2c1d9807df0a01411fd0d6d 100755
(executable)
--- 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 &&