]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t5411: finish preparing for `main` being the default branch name
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 31 Oct 2020 19:46:03 +0000 (19:46 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 31 Oct 2020 20:15:17 +0000 (13:15 -0700)
In addition to the trivial search-and-replace performed over the course
of the previous three commits, there is one test in t5411 that depends
on the length of the default branch name.

Adjust it and use `main` as the default branch name in this test.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5411-proc-receive-hook.sh
t/t5411/once-0010-report-status-v1.sh

index 6da6f597a50d5768242bbb86a757e968b44364b6..98b0e81208293b10a57cf8e20a8f3a621ae1f4d1 100755 (executable)
@@ -5,16 +5,11 @@
 
 test_description='Test proc-receive hook'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
 
-test_have_prereq PREPARE_FOR_MAIN_BRANCH || {
-       test_skip="In transit for the default branch name 'main'"
-       test_done
-}
-
 . "$TEST_DIRECTORY"/t5411/common-functions.sh
 
 setup_upstream_and_workbench () {
index 6005ee0ecb21d52de202eb38865ebf799ee42d36..cb431a9c91d7182f192f5bf8f5a5d6b6da2f0a5b 100644 (file)
@@ -69,11 +69,11 @@ test_expect_success "proc-receive: report status v1" '
        proc-receive> option forced-update
        proc-receive> ng refs/for/next/topic target branch not exist
        000eunpack ok
-       0019ok refs/heads/main
-       001eok refs/for/main/topic1
+       0017ok refs/heads/main
+       001cok refs/for/main/topic1
        0016ok refs/heads/foo
        0033ng refs/for/next/topic target branch not exist
-       001eok refs/for/main/topic2
+       001cok refs/for/main/topic2
        0000# post-receive hook
        post-receive< <COMMIT-A> <COMMIT-B> refs/heads/main
        post-receive< <ZERO-OID> <COMMIT-A> refs/for/main/topic1