]> git.ipfire.org Git - thirdparty/git.git/commit
t/helper: add test-submodule-nested-repo-config
authorAntonio Ospite <ao2@ao2.it>
Thu, 25 Oct 2018 16:18:13 +0000 (18:18 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 31 Oct 2018 06:01:30 +0000 (15:01 +0900)
commit2b1257e463fe97b3f657bbf30fafdea0c4847cd7
treefdd139c4b57085c08e74d1533364fdaf2424aaf0
parent76e9bdc437ca3111883eb57a479e5d8f582dd670
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>
Makefile
t/helper/test-submodule-nested-repo-config.c [new file with mode: 0644]
t/helper/test-tool.c
t/helper/test-tool.h
t/t7411-submodule-config.sh