]> git.99rst.org Git - git.git/commit
submodule-config: pass repo upon blob config read
authorJonathan Tan <redacted>
Mon, 16 Aug 2021 21:09:57 +0000 (14:09 -0700)
committerJunio C Hamano <redacted>
Wed, 8 Sep 2021 18:48:09 +0000 (11:48 -0700)
commite3e8bf046e9682b0d67c07c6bc83ec9717d9c941
tree4f7add2b871f29541679ac0d55b6f10cb4756af4
parent0693806bf82fb76347e226d8fc5e69077c0a3df5
submodule-config: pass repo upon blob config read

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.

Signed-off-by: Jonathan Tan <redacted>
Reviewed-by: Matheus Tavares <redacted>
Signed-off-by: Junio C Hamano <redacted>
config.c
config.h
submodule-config.c
git clone https://git.99rst.org/PROJECT