diff options
author | Heiko Voigt <hvoigt@hvoigt.net> | 2015-08-17 17:22:00 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-08-19 11:43:10 -0700 |
commit | 027771fcb153e0003bcb2d68e1838594a48b0161 (patch) | |
tree | 688a3f852ef82161a77db7ec8fd7c59ce601b956 /submodule.c | |
parent | 851e18c3859ad0f9f7e91fdb4d6cce5a8272420b (diff) | |
download | git-027771fcb153e0003bcb2d68e1838594a48b0161.tar.gz |
submodule: allow erroneous values for the fetchRecurseSubmodules optionhv/submodule-config
We should not die when reading the submodule config cache since the
user might not be able to get out of that situation when the
configuration is part of the history.
We should handle this condition later when the value is about to be
used.
Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net>
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'submodule.c')
-rw-r--r-- | submodule.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/submodule.c b/submodule.c index 97355eb7ad..48225595ef 100644 --- a/submodule.c +++ b/submodule.c @@ -288,21 +288,6 @@ static void print_submodule_summary(struct rev_info *rev, FILE *f, strbuf_release(&sb); } -int parse_fetch_recurse_submodules_arg(const char *opt, const char *arg) -{ - switch (git_config_maybe_bool(opt, arg)) { - case 1: - return RECURSE_SUBMODULES_ON; - case 0: - return RECURSE_SUBMODULES_OFF; - default: - if (!strcmp(arg, "on-demand")) - return RECURSE_SUBMODULES_ON_DEMAND; - /* TODO: remove the die for history parsing here */ - die("bad %s argument: %s", opt, arg); - } -} - void show_submodule_summary(FILE *f, const char *path, const char *line_prefix, unsigned char one[20], unsigned char two[20], |