]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5601-clone.sh
t5[6-9]*: adjust the references to the default branch name "main"
[thirdparty/git.git] / t / t5601-clone.sh
index e01c5fe02d81f947f3fb5e0b64df7516b87bdd21..664c913866236dcbb026a1222f18b1b5d41cf163 100755 (executable)
@@ -2,7 +2,7 @@
 
 test_description=clone
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -220,7 +220,7 @@ test_expect_success 'clone respects global branch.autosetuprebase' '
                rm -fr dst &&
                git clone src dst &&
                cd dst &&
-               actual="z$(git config branch.master.rebase)" &&
+               actual="z$(git config branch.main.rebase)" &&
                test ztrue = $actual
        )
 '
@@ -594,7 +594,7 @@ test_expect_success 'clone from a repository with two identical branches' '
 
        (
                cd src &&
-               git checkout -b another master
+               git checkout -b another main
        ) &&
        git clone src target-11 &&
        test "z$( cd target-11 && git symbolic-ref HEAD )" = zrefs/heads/another