aboutsummaryrefslogtreecommitdiff
path: root/t/t1013-read-tree-submodule.sh
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2017-05-26 12:10:11 -0700
committerJunio C Hamano <gitster@pobox.com>2017-05-30 14:28:53 +0900
commit17f38cb704623561fb4efd143429d63149f585d8 (patch)
tree2473607ea1eb6e761e26bc7163b54fade551dd33 /t/t1013-read-tree-submodule.sh
parent58b75bd6db45a5108af41b764d617d677f26a6ca (diff)
downloadgit-17f38cb704623561fb4efd143429d63149f585d8.tar.gz
git-17f38cb704623561fb4efd143429d63149f585d8.tar.xz
submodule test invocation: only pass additional arguments
In a later patch we want to introduce a config option to trigger the submodule recursing by default. As this option should be available and uniform across all commands that deal with submodules we'd want to test for this option in the submodule update library. So instead of calling the whole test set again for "git -c submodule.recurse foo" instead of "git foo --recurse-submodules", we'd only want to introduce one basic test that tests if the option is recognized and respected to not overload the test suite. Change the test functions by taking only the argument and assemble the command inside the test function by embedding the arguments into the command that is "git $arguments --recurse-submodules". It would be nice to do this for all functions in lib-submodule-update, but we cannot do that for the non-recursing tests, as there we do not just pass in a git command but whole functions. (See t3426 for example) Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1013-read-tree-submodule.sh')
-rwxr-xr-xt/t1013-read-tree-submodule.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t1013-read-tree-submodule.sh b/t/t1013-read-tree-submodule.sh
index de1ba02dc..2c8d62032 100755
--- a/t/t1013-read-tree-submodule.sh
+++ b/t/t1013-read-tree-submodule.sh
@@ -9,9 +9,9 @@ KNOWN_FAILURE_SUBMODULE_RECURSIVE_NESTED=1
KNOWN_FAILURE_DIRECTORY_SUBMODULE_CONFLICTS=1
KNOWN_FAILURE_SUBMODULE_OVERWRITE_IGNORED_UNTRACKED=1
-test_submodule_switch_recursing "git read-tree --recurse-submodules -u -m"
+test_submodule_switch_recursing_with_args "read-tree -u -m"
-test_submodule_forced_switch_recursing "git read-tree --recurse-submodules -u --reset"
+test_submodule_forced_switch_recursing_with_args "read-tree -u --reset"
test_submodule_switch "git read-tree -u -m"