File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,12 +12,11 @@ setfacl -k . 2>/dev/null
1212
1313# User must have read permissions to the repo -> failure on --shared=0400
1414test_expect_success ' shared = 0400 (faulty permission u-w)' '
15+ test_when_finished "rm -rf sub" &&
1516 mkdir sub && (
16- cd sub && git init --shared=0400
17+ cd sub &&
18+ test_must_fail git init --shared=0400
1719 )
18- ret="$?"
19- rm -rf sub
20- test $ret != "0"
2120'
2221
2322modebits () {
3332 git init --shared=1 &&
3433 test 1 = "$(git config core.sharedrepository)"
3534 ) &&
36- actual=$(ls -l sub/.git/HEAD)
35+ actual=$(ls -l sub/.git/HEAD) &&
3736 case "$actual" in
3837 -rw-rw-r--*)
3938 : happy
9089 rm -f .git/info/refs &&
9190 git update-server-info &&
9291 actual="$(modebits .git/info/refs)" &&
93- test "x$actual" = "x-$y" || {
94- ls -lt .git/info
95- false
96- }
92+ verbose test "x$actual" = "x-$y"
93+
9794 '
9895
9996 umask 077 &&
10299 rm -f .git/info/refs &&
103100 git update-server-info &&
104101 actual="$(modebits .git/info/refs)" &&
105- test "x$actual" = "x-$x" || {
106- ls -lt .git/info
107- false
108- }
102+ verbose test "x$actual" = "x-$x"
109103
110104 '
111105
You can’t perform that action at this time.
0 commit comments