]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5521-pull-options.sh
t55[23]*: adjust the references to the default branch name "main"
[thirdparty/git.git] / t / t5521-pull-options.sh
index f0806f3eb58aff44ee6939202429540b014e5941..63a688bdbf51e6096ab387293d13c81eaeb72f74 100755 (executable)
@@ -2,7 +2,7 @@
 
 test_description='pull options'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -102,13 +102,13 @@ test_expect_success 'git pull --force' '
        cat >>.git/config <<-\EOF &&
        [remote "one"]
                url = ../parent
-               fetch = refs/heads/master:refs/heads/mirror
+               fetch = refs/heads/main:refs/heads/mirror
        [remote "two"]
                url = ../parent
-               fetch = refs/heads/master:refs/heads/origin
-       [branch "master"]
+               fetch = refs/heads/main:refs/heads/origin
+       [branch "main"]
                remote = two
-               merge = refs/heads/master
+               merge = refs/heads/main
        EOF
        git pull two &&
        test_commit A &&
@@ -127,9 +127,9 @@ test_expect_success 'git pull --all' '
        [remote "two"]
                url = ../parent
                fetch = refs/heads/*:refs/remotes/two/*
-       [branch "master"]
+       [branch "main"]
                remote = one
-               merge = refs/heads/master
+               merge = refs/heads/main
        EOF
        git pull --all
        )
@@ -142,7 +142,7 @@ test_expect_success 'git pull --dry-run' '
                cd clonedry &&
                git pull --dry-run ../parent &&
                test_path_is_missing .git/FETCH_HEAD &&
-               test_path_is_missing .git/refs/heads/master &&
+               test_path_is_missing .git/refs/heads/main &&
                test_path_is_missing .git/index &&
                test_path_is_missing file
        )
@@ -156,7 +156,7 @@ test_expect_success 'git pull --all --dry-run' '
                git remote add origin ../parent &&
                git pull --all --dry-run &&
                test_path_is_missing .git/FETCH_HEAD &&
-               test_path_is_missing .git/refs/remotes/origin/master &&
+               test_path_is_missing .git/refs/remotes/origin/main &&
                test_path_is_missing .git/index &&
                test_path_is_missing file
        )