]> git.ipfire.org Git - thirdparty/git.git/commit
tests: don't assume a .git/info for .git/info/grafts
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 3 Jun 2022 11:15:05 +0000 (13:15 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Jun 2022 19:00:21 +0000 (12:00 -0700)
commit93e02b6e1e845f5178017c0bac4f18077b331499
treeafb809773453e6238ed671461cb4f899f27711e2
parente942292a3e099f03ae23efd3fd9f09f8b512cadf
tests: don't assume a .git/info for .git/info/grafts

Change those tests that assumed that a .git/info directory would be
created for them when writing .git/info/grafts to explicitly create
the directory.

Do this using the new "TEST_CREATE_REPO_NO_TEMPLATE" facility, and use
"mkdir" instead of "mkdir -p" to assert that we don't have the
.git/info already. An exception to this is the "with grafts" test in
"t6001-rev-list-graft.sh". There we're modifying our ".git" state in a
for-loop, in lieu of refactoring that more extensively let's use
"mkdir -p" there.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/annotate-tests.sh
t/t2400-worktree-add.sh
t/t5318-commit-graph.sh
t/t6001-rev-list-graft.sh
t/t6101-rev-parse-parents.sh
t/t8001-annotate.sh
t/t8002-blame.sh
t/t8012-blame-colors.sh