]> git.ipfire.org Git - thirdparty/git.git/commit
contrib/subtree: fix tests with reftable backend
authorColin Stagner <ask+git@howdoi.land>
Wed, 4 Feb 2026 04:38:11 +0000 (22:38 -0600)
committerJunio C Hamano <gitster@pobox.com>
Wed, 4 Feb 2026 17:33:59 +0000 (09:33 -0800)
commit486386c687609603a2c1ebc434384d1e380908ae
treebf7e12e3ba316621888a87bd8cce597381a141c0
parent67ad42147a7acc2af6074753ebd03d904476118f
contrib/subtree: fix tests with reftable backend

One git-subtree test-case relies on git internals to infer the
default branch name. This test fails with the new reftable
backend.

    GIT_TEST_DEFAULT_REF_FORMAT=reftable \
      meson test t7900-subtree

This test script already sets

    GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main

which eliminates the need to infer a branch name at runtime.
Hardcode the branch name.

Signed-off-by: Colin Stagner <ask+git@howdoi.land>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/subtree/t/t7900-subtree.sh