X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=t%2Ft5601-clone.sh;h=e7e6c089554c5d2b0ba7cd51b79a53f6880f0ae1;hb=608cc4f2738d5e2055e238b2a9e482180d948a05;hp=7df3c5373ae605098b52fb8d2771ada81efbebee;hpb=5277bd3e26991233199348c62c5bb7ff010f2e34;p=thirdparty%2Fgit.git diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh index 7df3c5373a..e7e6c08955 100755 --- a/t/t5601-clone.sh +++ b/t/t5601-clone.sh @@ -2,6 +2,9 @@ test_description=clone +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME + . ./test-lib.sh X= @@ -37,7 +40,7 @@ test_expect_success 'clone with excess parameters (2)' ' ' -test_expect_success C_LOCALE_OUTPUT 'output from clone' ' +test_expect_success 'output from clone' ' rm -fr dst && git clone -n "file://$(pwd)/src" dst >output 2>&1 && test $(grep Clon output | wc -l) = 1 @@ -217,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 ) ' @@ -591,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