]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5617-clone-submodules-remote.sh
t5[6-9]*: adjust the references to the default branch name "main"
[thirdparty/git.git] / t / t5617-clone-submodules-remote.sh
index cba468fc538475495055f80282bb362e1d96612c..e2dbb4eabae2aa141b3b1d5a1a5b0e4cdd9d0e65 100755 (executable)
@@ -2,7 +2,7 @@
 
 test_description='Test cloning repos with submodules using remote-tracking branches'
 
-GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 . ./test-lib.sh
@@ -10,7 +10,7 @@ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 pwd=$(pwd)
 
 test_expect_success 'setup' '
-       git checkout -b master &&
+       git checkout -b main &&
        test_commit commit1 &&
        mkdir sub &&
        (
@@ -42,7 +42,7 @@ test_expect_success 'clone with --remote-submodules' '
        git clone --recurse-submodules --remote-submodules "file://$pwd/." super_clone &&
        (
                cd super_clone/sub &&
-               git diff --exit-code remotes/origin/master
+               git diff --exit-code remotes/origin/main
        )
 '
 
@@ -60,7 +60,7 @@ test_expect_success 'clone with --single-branch' '
        git clone --recurse-submodules --single-branch "file://$pwd/." super_clone &&
        (
                cd super_clone/sub &&
-               git rev-parse --verify origin/master &&
+               git rev-parse --verify origin/main &&
                test_must_fail git rev-parse --verify origin/other
        )
 '