diff options
author | Brandon Williams <bmwill@google.com> | 2017-08-03 18:20:00 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-08-03 20:11:02 (GMT) |
commit | 557a5998df19faf8641acfc5b6b1c3c2ba64dca9 (patch) | |
tree | bc5a1d5293a02c0d7b2c6bfd45b2525f67f5012a /builtin/reset.c | |
parent | 33028713206c3f59709617d8af5ba4212920a5f0 (diff) | |
download | git-557a5998df19faf8641acfc5b6b1c3c2ba64dca9.zip git-557a5998df19faf8641acfc5b6b1c3c2ba64dca9.tar.gz git-557a5998df19faf8641acfc5b6b1c3c2ba64dca9.tar.bz2 |
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/reset.c')
-rw-r--r-- | builtin/reset.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/builtin/reset.c b/builtin/reset.c index 772d078..50488d2 100644 --- a/builtin/reset.c +++ b/builtin/reset.c @@ -309,8 +309,6 @@ int cmd_reset(int argc, const char **argv, const char *prefix) PARSE_OPT_KEEP_DASHDASH); parse_args(&pathspec, argv, prefix, patch_mode, &rev); - load_submodule_cache(); - unborn = !strcmp(rev, "HEAD") && get_oid("HEAD", &oid); if (unborn) { /* reset on unborn branch: treat as reset to empty tree */ |