diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-06-03 14:15:07 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-06-06 22:00:21 +0300 |
commit | ce5369e3ef0078458a0608be9ddeb2b276e61b62 (patch) | |
tree | 9612cab421725a9b926520d1d78e6f0e3eac890d /t/t1301-shared-repo.sh | |
parent | 8da0b02d9911d483d34ad8994c879953eebd345c (diff) |
tests: don't assume a .git/info for .git/info/refs
Change those tests that assumed that a .git/info directory would be
created for them when writing .git/info/refs to explicitly create the
directory by using the "--template=" argument to "git init".
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1301-shared-repo.sh')
-rwxr-xr-x | t/t1301-shared-repo.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t1301-shared-repo.sh b/t/t1301-shared-repo.sh index 84bf1970d8..93a2f91f8a 100755 --- a/t/t1301-shared-repo.sh +++ b/t/t1301-shared-repo.sh @@ -48,7 +48,7 @@ done test_expect_success 'shared=all' ' mkdir sub && cd sub && - git init --shared=all && + git init --template= --shared=all && test 2 = $(git config core.sharedrepository) ' @@ -57,6 +57,7 @@ test_expect_success POSIXPERM 'update-server-info honors core.sharedRepository' git add a1 && test_tick && git commit -m a1 && + mkdir .git/info && umask 0277 && git update-server-info && actual="$(ls -l .git/info/refs)" && |