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:
Brandon Williams
2017-08-03 11:19:51 -07:00
committed by Junio C Hamano
parent ec6141a0f2
commit 492c6c46da
2 changed files with 17 additions and 8 deletions

View File

@ -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) {