aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/grep.c
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2017-08-03 11:20:00 -0700
committerJunio C Hamano <gitster@pobox.com>2017-08-03 13:11:02 -0700
commit557a5998df19faf8641acfc5b6b1c3c2ba64dca9 (patch)
treebc5a1d5293a02c0d7b2c6bfd45b2525f67f5012a /builtin/grep.c
parent33028713206c3f59709617d8af5ba4212920a5f0 (diff)
downloadgit-557a5998df19faf8641acfc5b6b1c3c2ba64dca9.tar.gz
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/grep.c')
-rw-r--r--builtin/grep.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/builtin/grep.c b/builtin/grep.c
index ac06d2d33c..2d65f27d01 100644
--- a/builtin/grep.c
+++ b/builtin/grep.c
@@ -1048,10 +1048,6 @@ int cmd_grep(int argc, const char **argv, const char *prefix)
}
#endif
- if (recurse_submodules) {
- gitmodules_config();
- }
-
if (show_in_pager && (cached || list.nr))
die(_("--open-files-in-pager only works on the worktree"));