Adrian Ratiu <adrian.ratiu@xxxxxxxxxxxxx> writes: > +test_expect_success 'commit and push changes to submodules' ' > + ( > + cd cloned && > + > + git -C legacy switch --track -C master origin/master && This test needs to future-proof itself, perhaps with something like to force the initial branch name to a known value. t/t7425-submodule-mixed-gitdir-paths.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/t7425-submodule-mixed-gitdir-paths.sh b/t/t7425-submodule-mixed-gitdir-paths.sh index 8a2d2e917f..02bd48aeeb 100755 --- a/t/t7425-submodule-mixed-gitdir-paths.sh +++ b/t/t7425-submodule-mixed-gitdir-paths.sh @@ -2,9 +2,13 @@ test_description='submodules handle mixed legacy and new (encoded) style gitdir paths' +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master + . ./test-lib.sh . "$TEST_DIRECTORY"/lib-verify-submodule-gitdir-path.sh + test_expect_success 'setup: allow file protocol' ' git config --global protocol.file.allow always ' -- 2.51.0-302-ga83f9e55f9