diff options
author | Denton Liu <liu.denton@gmail.com> | 2020-06-11 19:41:49 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-06-12 20:33:40 +0200 |
commit | aa06180ac90984204e59ac74bb4e3a4d09037ac2 (patch) | |
tree | d2754694324423c5904f60990d702826b3721ff0 /t/t1013-read-tree-submodule.sh | |
parent | lib-submodule-update: consolidate --recurse-submodules (diff) | |
download | git-aa06180ac90984204e59ac74bb4e3a4d09037ac2.tar.xz git-aa06180ac90984204e59ac74bb4e3a4d09037ac2.zip |
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>
Diffstat (limited to 't/t1013-read-tree-submodule.sh')
-rwxr-xr-x | t/t1013-read-tree-submodule.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t1013-read-tree-submodule.sh b/t/t1013-read-tree-submodule.sh index 91a6fafcb4..b6df7444c0 100755 --- a/t/t1013-read-tree-submodule.sh +++ b/t/t1013-read-tree-submodule.sh @@ -12,8 +12,8 @@ test_submodule_switch_recursing_with_args "read-tree -u -m" test_submodule_forced_switch_recursing_with_args "read-tree -u --reset" -test_submodule_switch "git read-tree -u -m" +test_submodule_switch "read-tree -u -m" -test_submodule_forced_switch "git read-tree -u --reset" +test_submodule_forced_switch "read-tree -u --reset" test_done |