diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-09-12 10:43:17 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-09-12 10:43:17 -0700 |
commit | 81a5bdd9c52d476edcbf5368d1242ab5a92f5e3f (patch) | |
tree | 29ccf890f27821059f77d44c67790c087ffe9eed /builtin | |
parent | e49450327e452798439d93e58236282897796b55 (diff) | |
parent | 740a8fc2249cf7d8b39ab50a25bbf86554158ae7 (diff) | |
download | git-81a5bdd9c52d476edcbf5368d1242ab5a92f5e3f.tar.gz |
Sync with 1.7.6.3
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/fetch.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c index 93c99385a9..e422ced929 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -941,6 +941,15 @@ int cmd_fetch(int argc, const char **argv, const char *prefix) argc = parse_options(argc, argv, prefix, builtin_fetch_options, builtin_fetch_usage, 0); + if (recurse_submodules != RECURSE_SUBMODULES_OFF) { + if (recurse_submodules_default) { + int arg = parse_fetch_recurse_submodules_arg("--recurse-submodules-default", recurse_submodules_default); + set_config_fetch_recurse_submodules(arg); + } + gitmodules_config(); + git_config(submodule_config, NULL); + } + if (all) { if (argc == 1) die(_("fetch --all does not take a repository argument")); @@ -976,12 +985,6 @@ int cmd_fetch(int argc, const char **argv, const char *prefix) if (!result && (recurse_submodules != RECURSE_SUBMODULES_OFF)) { const char *options[10]; int num_options = 0; - if (recurse_submodules_default) { - int arg = parse_fetch_recurse_submodules_arg("--recurse-submodules-default", recurse_submodules_default); - set_config_fetch_recurse_submodules(arg); - } - gitmodules_config(); - git_config(submodule_config, NULL); add_options_to_argv(&num_options, options); result = fetch_populated_submodules(num_options, options, submodule_prefix, |