]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t1500-rev-parse.sh
t3905: remove nested git in command substitution
[thirdparty/git.git] / t / t1500-rev-parse.sh
index 51d7d40ec1c65e25706dd015adda6f9566415653..abdda360d5258daf5c97184c900ace674534537f 100755 (executable)
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='test git rev-parse'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_one () {
@@ -229,8 +232,8 @@ test_expect_success 'showing the superproject correctly' '
        test_commit -C super/dir/sub branch1_commit &&
        git -C super add dir/sub &&
        test_commit -C super branch1_commit &&
-       git -C super checkout -b branch2 master &&
-       git -C super/dir/sub checkout -b branch2 master &&
+       git -C super checkout -b branch2 main &&
+       git -C super/dir/sub checkout -b branch2 main &&
        test_commit -C super/dir/sub branch2_commit &&
        git -C super add dir/sub &&
        test_commit -C super branch2_commit &&