summaryrefslogtreecommitdiffstats
path: root/t/t6134-pathspec-in-submodule.sh
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-08-13 11:14:18 +0200
committerJunio C Hamano <gitster@pobox.com>2024-08-13 19:01:05 +0200
commitf7d61c413530c53a55c5ff3fa345db6a9828943f (patch)
treed1aab2f36d348088aa96e414320443f25212c670 /t/t6134-pathspec-in-submodule.sh
parentconfig: don't have setters depend on `the_repository` (diff)
downloadgit-f7d61c413530c53a55c5ff3fa345db6a9828943f.tar.xz
git-f7d61c413530c53a55c5ff3fa345db6a9828943f.zip
config: don't depend on `the_repository` with branch conditions
When computing branch "includeIf" conditions we use `the_repository` to obtain the main ref store. We really shouldn't depend on this global repository though, but should instead use the repository that is being passed to us via `struct config_include_data`. Otherwise, when parsing configuration of e.g. submodules, we may end up evaluating the condition the via the wrong refdb. Fix this. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6134-pathspec-in-submodule.sh')
0 files changed, 0 insertions, 0 deletions