diff options
author | Stefan Beller <sbeller@google.com> | 2017-06-01 03:30:50 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-01 04:36:36 +0300 |
commit | 58f4203e7db265cd2d8315ca5d9c9979cd577427 (patch) | |
tree | dc2c0d75e01fb7c5f8e5e412ec0611a4871b3e32 /builtin | |
parent | 4e53d6a54122b6034b9b0346c84e3e5525aed542 (diff) |
builtin/fetch.c: respect 'submodule.recurse' option
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/fetch.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c index 5f2c2ab23e..c1ec3b03c3 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -73,6 +73,13 @@ static int git_fetch_config(const char *k, const char *v, void *cb) fetch_prune_config = git_config_bool(k, v); return 0; } + + if (!strcmp(k, "submodule.recurse")) { + int r = git_config_bool(k, v) ? + RECURSE_SUBMODULES_ON : RECURSE_SUBMODULES_OFF; + recurse_submodules = r; + } + return git_default_config(k, v, cb); } |