Thread (61 messages) flat view 61 messages, 6 authors, 2021-09-27

Re: [PATCH v3 0/8] In grep, no adding submodule ODB as alternates

From: Matheus Tavares Bernardino <hidden>
Date: 2021-08-17 19:29:53

On Mon, Aug 16, 2021 at 6:10 PM Jonathan Tan [off-list ref] wrote:
Thanks for reviewing, everyone. Here are the requested changes.
Thanks. You've addressed all my comments from the previous rounds.

One minor suggestion which is not worth a re-roll on its own:
Range-diff against v2:
[...]
7:  94db10a4e5 ! 7:  8b86618531 submodule-config: pass repo upon blob config read
    @@ Commit message
         When reading the config of a submodule, if reading from a blob, read
         using an explicitly specified repository instead of by adding the
         submodule's ODB as an alternate and then reading an object from
         the_repository.

    +    This makes the "grep --recurse-submodules with submodules without
    +    .gitmodules in the working tree" test in t7814 work when
    +    GIT_TEST_FATAL_REGISTER_SUBMODULE_ODB is true.
This sounds to me as if the test was previously failing when
GIT_TEST_FATAL_REGISTER_SUBMODULE_ODB is true, which is not the case.
I think an alternative could be:

This code path is exercised by the "grep --recurse-submodules with
submodules without .gitmodules in the working tree" test in t7814. The
test passes with GIT_TEST_FATAL_REGISTER_SUBMODULE_ODB=1,
showing that we indeed are no longer accessing the submodule's ODB
through the alternates list.

But it's really a minor thing. With or without this change:

Reviewed-by: Matheus Tavares <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help