fetch: don't overlay config with submodule-config
Don't rely on overlaying the repository's config on top of the submodule-config, instead query the repository's config directly for the fetch_recurse field. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
ec6141a0f2
commit
492c6c46da
@ -1362,7 +1362,6 @@ int cmd_fetch(int argc, const char **argv, const char *prefix)
|
||||
|
||||
if (recurse_submodules != RECURSE_SUBMODULES_OFF) {
|
||||
gitmodules_config();
|
||||
git_config(submodule_config, NULL);
|
||||
}
|
||||
|
||||
if (all) {
|
||||
|
||||
Reference in New Issue
Block a user