]> git.ipfire.org Git - thirdparty/git.git/commit - t/t5572-pull-submodule.sh
lib-submodule-update: prepend "git" to $command
authorDenton Liu <liu.denton@gmail.com>
Thu, 11 Jun 2020 17:41:49 +0000 (13:41 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Jun 2020 18:33:40 +0000 (11:33 -0700)
commitaa06180ac90984204e59ac74bb4e3a4d09037ac2
treed2754694324423c5904f60990d702826b3721ff0
parentadd245234820be6cec3f54174d44f738aa1a80f9
lib-submodule-update: prepend "git" to $command

Since all invocations of test_submodule_forced_switch() are git
commands, automatically prepend "git" before invoking
test_submodule_switch_common().

Similarly, many invocations of test_submodule_switch() are also git
commands so automatically prepend "git" before invoking
test_submodule_switch_common() as well.

Finally, for invocations of test_submodule_switch() that invoke a custom
function, rename the old function to test_submodule_switch_func().

This is necessary because in a future commit, we will be adding some
logic that needs to distinguish between an invocation of a plain git
comamnd and an invocation of a test helper function.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
13 files changed:
t/lib-submodule-update.sh
t/t1013-read-tree-submodule.sh
t/t2013-checkout-submodule.sh
t/t3426-rebase-submodule.sh
t/t3512-cherry-pick-submodule.sh
t/t3513-revert-submodule.sh
t/t3906-stash-submodule.sh
t/t4137-apply-submodule.sh
t/t4255-am-submodule.sh
t/t5572-pull-submodule.sh
t/t6041-bisect-submodule.sh
t/t7112-reset-submodule.sh
t/t7613-merge-submodule.sh