path: root/t/helper/test-tool.c
diff options
authorAntonio Ospite <>2018-10-25 16:18:13 (GMT)
committerJunio C Hamano <>2018-10-31 06:01:30 (GMT)
commit2b1257e463fe97b3f657bbf30fafdea0c4847cd7 (patch)
treefdd139c4b57085c08e74d1533364fdaf2424aaf0 /t/helper/test-tool.c
parent76e9bdc437ca3111883eb57a479e5d8f582dd670 (diff)
t/helper: add test-submodule-nested-repo-config
Add a test tool to exercise config_from_gitmodules(), in particular for the case of nested submodules. Add also a test to document that reading the submoudles config of nested submodules does not work yet when the .gitmodules file is not in the working tree but it still in the index. This is because the git API does not always make it possible access the object store of an arbitrary repository (see get_oid() usage in config_from_gitmodules()). When this git limitation gets fixed the aforementioned use case will be supported too. Signed-off-by: Antonio Ospite <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 't/helper/test-tool.c')
1 files changed, 1 insertions, 0 deletions
diff --git a/t/helper/test-tool.c b/t/helper/test-tool.c
index 0edafcf..a25fa80 100644
--- a/t/helper/test-tool.c
+++ b/t/helper/test-tool.c
@@ -40,6 +40,7 @@ static struct test_cmd cmds[] = {
{ "strcmp-offset", cmd__strcmp_offset },
{ "string-list", cmd__string_list },
{ "submodule-config", cmd__submodule_config },
+ { "submodule-nested-repo-config", cmd__submodule_nested_repo_config },
{ "subprocess", cmd__subprocess },
{ "urlmatch-normalization", cmd__urlmatch_normalization },
{ "wildmatch", cmd__wildmatch },