]> git.ipfire.org Git - thirdparty/git.git/commit
t0613: stop setting default initial branch
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Wed, 10 Sep 2025 15:29:03 +0000 (16:29 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 10 Sep 2025 20:34:59 +0000 (13:34 -0700)
commit5590b4e7f52017794169a93d571204141bab3d28
treee9fee73487ca0ef9557b4085a74676a1c6ef4d9b
parent3d6e7ec4c138f027486d51e949573659d592ff9a
t0613: stop setting default initial branch

As the tests are all run in separate repositories, set the branch
name to "master" when creating the repository for the tests where
the result depends on the branch name. In order to make it easier to
change the branch name in the future a helper function is used. This
reduces the number of tests that depend on the default branch name
being "master" and removes the last instance of a test file using
"GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master".

Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0613-reftable-write-options.sh