mirror of
https://github.com/git/git
synced 2024-08-25 10:45:59 +00:00
submodule update: add regression test with old style setups
Asf178c13fda
(Revert "Merge branch 'sb/submodule-core-worktree'", 2018-09-07) was produced shortly before a release, nobody asked for a regression test to be included. Add a regression test that makes sure that the invocation of `git submodule update` on old setups doesn't produce errors as pointed out inf178c13fda
. The place to add such a regression test may look odd in t7412, but that is the best place as there we setup old style submodule setups explicitly. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
b21ebb671b
commit
98bf667489
|
@ -75,7 +75,12 @@ test_expect_success 're-setup nested submodule' '
|
||||||
GIT_WORK_TREE=../../../nested git -C sub1/.git/modules/nested config \
|
GIT_WORK_TREE=../../../nested git -C sub1/.git/modules/nested config \
|
||||||
core.worktree "../../../nested" &&
|
core.worktree "../../../nested" &&
|
||||||
# make sure this re-setup is correct
|
# make sure this re-setup is correct
|
||||||
git status --ignore-submodules=none
|
git status --ignore-submodules=none &&
|
||||||
|
|
||||||
|
# also make sure this old setup does not regress
|
||||||
|
git submodule update --init --recursive >out 2>err &&
|
||||||
|
test_must_be_empty out &&
|
||||||
|
test_must_be_empty err
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'absorb the git dir in a nested submodule' '
|
test_expect_success 'absorb the git dir in a nested submodule' '
|
||||||
|
|
Loading…
Reference in a new issue