]> Pileus Git - ~andy/git/blobdiff - t/t1301-shared-repo.sh
t1301: loosen test for forced modes
[~andy/git] / t / t1301-shared-repo.sh
index d459854e71e1a5c8f850b7c5ef6d1ae1e1f98df9..3c8a2373ac0bf8e6e9737df3fec3b7d66d044a18 100755 (executable)
@@ -147,8 +147,8 @@ test_expect_success 'forced modes' '
        # Everything must be unaccessible to others
        test -z "$(sed -n -e "/^.......---/d" actual)" &&
 
-       # All directories must have 2770
-       test -z "$(sed -n -e "/^drwxrws---/d" -e "/^d/p" actual)" &&
+       # All directories must have either 2770 or 770
+       test -z "$(sed -n -e "/^drwxrw[sx]---/d" -e "/^d/p" actual)" &&
 
        # post-update hook must be 0770
        test -z "$(sed -n -e "/post-update/{