]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t7417-submodule-path-url.sh
t3905: remove nested git in command substitution
[thirdparty/git.git] / t / t7417-submodule-path-url.sh
index f7e7e94d7b6cfec6c625f6830b296b276572df66..f0f6b9fa9e9a029bd8a17337beb402d1618ca948 100755 (executable)
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 test_description='check handling of .gitmodule path with dash'
+GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
+export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+
 . ./test-lib.sh
 
 test_expect_success 'create submodule with dash in path' '
@@ -36,7 +39,7 @@ test_expect_success MINGW 'submodule paths disallows trailing spaces' '
        sed "s/sub/sub /" <tree >tree.new &&
        tree=$(git -C super mktree <tree.new) &&
        commit=$(echo with space | git -C super commit-tree $tree) &&
-       git -C super update-ref refs/heads/master $commit &&
+       git -C super update-ref refs/heads/main $commit &&
 
        test_must_fail git clone --recurse-submodules super dst 2>err &&
        test_i18ngrep "sub " err