diff options
author | Antonio Ospite <ao2@ao2.it> | 2018-10-25 16:18:13 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-10-31 06:01:30 (GMT) |
commit | 2b1257e463fe97b3f657bbf30fafdea0c4847cd7 (patch) | |
tree | fdd139c4b57085c08e74d1533364fdaf2424aaf0 /t/helper/test-tool.h | |
parent | 76e9bdc437ca3111883eb57a479e5d8f582dd670 (diff) | |
download | git-2b1257e463fe97b3f657bbf30fafdea0c4847cd7.zip git-2b1257e463fe97b3f657bbf30fafdea0c4847cd7.tar.gz git-2b1257e463fe97b3f657bbf30fafdea0c4847cd7.tar.bz2 |
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 <ao2@ao2.it>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-tool.h')
-rw-r--r-- | t/helper/test-tool.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/helper/test-tool.h b/t/helper/test-tool.h index e954e8c..9462e38 100644 --- a/t/helper/test-tool.h +++ b/t/helper/test-tool.h @@ -36,6 +36,7 @@ int cmd__sigchain(int argc, const char **argv); int cmd__strcmp_offset(int argc, const char **argv); int cmd__string_list(int argc, const char **argv); int cmd__submodule_config(int argc, const char **argv); +int cmd__submodule_nested_repo_config(int argc, const char **argv); int cmd__subprocess(int argc, const char **argv); int cmd__urlmatch_normalization(int argc, const char **argv); int cmd__wildmatch(int argc, const char **argv); |