From: Johannes Sixt Date: Sun, 9 Aug 2009 16:02:55 +0000 (+0200) Subject: t0001-init: split the existence test from the permission test X-Git-Tag: v1.6.5-rc0~96 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d82e75e86c8d1555aaa6415034aff215633fe7f2;p=git.git t0001-init: split the existence test from the permission test 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 Signed-off-by: Junio C Hamano --- diff --git a/t/t0001-init.sh b/t/t0001-init.sh index 07e011d9e..538650479 100755 --- a/t/t0001-init.sh +++ b/t/t0001-init.sh @@ -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