summaryrefslogtreecommitdiff
path: root/builtin/fetch.c
diff options
context:
space:
mode:
authorLibravatar Brandon Williams <bmwill@google.com>2017-08-03 11:20:00 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-08-03 13:11:02 -0700
commit557a5998df19faf8641acfc5b6b1c3c2ba64dca9 (patch)
treebc5a1d5293a02c0d7b2c6bfd45b2525f67f5012a /builtin/fetch.c
parentunpack-trees: improve loading of .gitmodules (diff)
downloadtgif-557a5998df19faf8641acfc5b6b1c3c2ba64dca9.tar.xz
submodule: remove gitmodules_config
Now that the submodule-config subsystem can lazily read the gitmodules file we no longer need to explicitly pre-read the gitmodules by calling 'gitmodules_config()' so let's remove it. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/fetch.c')
-rw-r--r--builtin/fetch.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c
index 3fe99073d3..132e3224ed 100644
--- a/builtin/fetch.c
+++ b/builtin/fetch.c
@@ -1360,10 +1360,6 @@ int cmd_fetch(int argc, const char **argv, const char *prefix)
if (depth || deepen_since || deepen_not.nr)
deepen = 1;
- if (recurse_submodules != RECURSE_SUBMODULES_OFF) {
- gitmodules_config();
- }
-
if (all) {
if (argc == 1)
die(_("fetch --all does not take a repository argument"));