Merge branch 'maint'
[gitweb.git] / t / t0001-init.sh
index 07e011d9efa0ab1ea596a1dfb146e2cda614e45e..5386504790deea55d127f053f7b714cd121a2d57 100755 (executable)
@@ -243,6 +243,12 @@ test_expect_success 'init recreates a new bare directory' '
 '
 
 test_expect_success 'init creates a new deep directory' '
+       rm -fr newdir &&
+       git init newdir/a/b/c &&
+       test -d newdir/a/b/c/.git/refs
+'
+
+test_expect_success POSIXPERM 'init creates a new deep directory (umask vs. shared)' '
        rm -fr newdir &&
        (
                # Leading directories should honor umask while