]> git.ipfire.org Git - thirdparty/git.git/commitdiff
tests: drop the `PREPARE_FOR_MAIN_BRANCH` prereq
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 17 Dec 2020 01:07:10 +0000 (01:07 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Dec 2020 01:41:41 +0000 (17:41 -0800)
We no longer use it.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh

index a863ccee7e9a6a24183cdaa8e5bdc07b20fa24ee..9fa7c1d0f6d1c8c23642a7bc81ad4fb2f8a82275 100644 (file)
@@ -1712,14 +1712,6 @@ test_lazy_prereq REBASE_P '
        test -z "$GIT_TEST_SKIP_REBASE_P"
 '
 
-# Special-purpose prereq for transitioning to a new default branch name:
-# Some tests need more than just a mindless (case-preserving) s/master/main/g
-# replacement. The non-trivial adjustments are guarded behind this
-# prerequisite, acting kind of as a feature flag
-test_lazy_prereq PREPARE_FOR_MAIN_BRANCH '
-       test "$GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME" = main
-'
-
 # Ensure that no test accidentally triggers a Git command
 # that runs 'crontab', affecting a user's cron schedule.
 # Tests that verify the cron integration must set this locally