• S
    submodule: properly recurse for read-tree and checkout · 218c8837
    Stefan Beller 提交于
    We forgot to prepare the submodule env, which is only a problem for
    nested submodules. See 2e5d6503 (ls-files: fix recurse-submodules
    with nested submodules, 2017-04-13) for further explanation.
    
    To come up with a proper test for this, we'd need to look at nested
    submodules just as in that given commit. It turns out we're lucky
    and these tests already exist, but are marked as failing. We need
    to pass `--recurse-submodules` to read-tree additionally to make
    these tests pass. Passing that flag alone would not make the tests
    pass, such that this covers testing for the bug fix of the submodule
    env as well.
    Signed-off-by: NStefan Beller <sbeller@google.com>
    Signed-off-by: NJunio C Hamano <gitster@pobox.com>
    218c8837
t2013-checkout-submodule.sh 2.1 KB