summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2017-05-26 19:10:11 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-05-30 05:28:53 (GMT)
commit17f38cb704623561fb4efd143429d63149f585d8 (patch)
tree2473607ea1eb6e761e26bc7163b54fade551dd33 /builtin
parent58b75bd6db45a5108af41b764d617d677f26a6ca (diff)
downloadgit-17f38cb704623561fb4efd143429d63149f585d8.zip
git-17f38cb704623561fb4efd143429d63149f585d8.tar.gz
git-17f38cb704623561fb4efd143429d63149f585d8.tar.bz2
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 'builtin')
0 files changed, 0 insertions, 0 deletions