]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t2010-checkout-ambiguous.sh
t2*: adjust the references to the default branch name "main"
[thirdparty/git.git] / t / t2010-checkout-ambiguous.sh
index 3f5431e033f6b33697b6c05ef050bfc0eeec5209..6e8757387d15fc88afbc55f41633361875a2fde3 100755 (executable)
@@ -2,7 +2,7 @@
 
 test_description='checkout and pathspecs/refspecs ambiguities'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -20,7 +20,7 @@ test_expect_success 'reference must be a tree' '
 '
 
 test_expect_success 'branch switching' '
-       test "refs/heads/master" = "$(git symbolic-ref HEAD)" &&
+       test "refs/heads/main" = "$(git symbolic-ref HEAD)" &&
        git checkout world -- &&
        test "refs/heads/world" = "$(git symbolic-ref HEAD)"
 '
@@ -60,7 +60,7 @@ test_expect_success 'disambiguate checking out from a tree-ish' '
 '
 
 test_expect_success 'accurate error message with more than one ref' '
-       test_must_fail git checkout HEAD master -- 2>actual &&
+       test_must_fail git checkout HEAD main -- 2>actual &&
        test_i18ngrep 2 actual &&
        test_i18ngrep "one reference expected, 2 given" actual
 '