summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7d53a07)
raw | patch | inline | side by side (parent: 7d53a07)
author | Johannes Sixt <j6t@kdbg.org> | |
Sun, 9 Aug 2009 16:02:55 +0000 (18:02 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 9 Aug 2009 17:43:24 +0000 (10:43 -0700) |
The test for correct permissions after init created a deep directory
must be guarded by POSIXPERM. But testing that the deep dirctory exists
is good even on platforms that do not provide the POSIXPERM prerequiste.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
must be guarded by POSIXPERM. But testing that the deep dirctory exists
is good even on platforms that do not provide the POSIXPERM prerequiste.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0001-init.sh | patch | blob | history |
diff --git a/t/t0001-init.sh b/t/t0001-init.sh
index 07e011d9efa0ab1ea596a1dfb146e2cda614e45e..5386504790deea55d127f053f7b714cd121a2d57 100755 (executable)
--- a/t/t0001-init.sh
+++ b/t/t0001-init.sh
'
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