Re: [PATCH 4/9] t: submodules: add basic mixed gitdir path tests
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 2, 2025, 23:02 UTC
- Message-ID
- <xmqqjz2gh2zs.fsf@gitster.g>
- In-Reply-To
- <20250816213642.3517822-5-adrian.ratiu@collabora.com>
Adrian Ratiu <adrian.ratiu@collabora.com> writes:
Show 5 quoted lines
> +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