Skip to content
  • Antonio Ospite's avatar
    t/helper: add test-submodule-nested-repo-config · 2b1257e4
    Antonio Ospite authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    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: default avatarAntonio Ospite <ao2@ao2.it>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    2b1257e4