]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t1091-sparse-checkout-builtin.sh
Sync with 2.30.6
[thirdparty/git.git] / t / t1091-sparse-checkout-builtin.sh
index 749c8f1c0ab82a2f872b9d4b628aa748448f0e1c..705efb581170b9761592fec4bbd0b7521bb0923c 100755 (executable)
@@ -2,6 +2,9 @@
 
 test_description='sparse checkout builtin tests'
 
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 list_files() {
@@ -117,7 +120,7 @@ test_expect_success 'interaction with clone --no-checkout (unborn index)' '
        test_path_is_missing clone_no_checkout/.git/index &&
 
        # No branch is checked out until we manually switch to one
-       git -C clone_no_checkout switch master &&
+       git -C clone_no_checkout switch main &&
        test_path_is_file clone_no_checkout/.git/index &&
        check_files clone_no_checkout a folder1
 '