fast-import: remove duplicated option-parsing line
Commit 1bdca81641 (fast-import: add options for rewriting submodules, 2020-02-22) accidentally added two lines parsing the option "rewrite-submodules-from". This didn't do anything in practice, because they're in an if/else chain and so the second one can never trigger. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
Oct 15, 2020 at 15:34 UTC
6db29ab21346aee75f975fd27e4e87b423ed8476
1 file changed
-1
builtin/fast-import.c
-1
@@ -3396,7 +3396,6 @@ static int parse_one_feature(const char *feature, int from_stream)
3396
option_rewrite_submodules(arg, &sub_marks_to);
3397
} else if (skip_prefix(feature, "rewrite-submodules-from=", &arg)) {
3398
option_rewrite_submodules(arg, &sub_marks_from);
3399
- } else if (skip_prefix(feature, "rewrite-submodules-from=", &arg)) {
3399
} else if (!strcmp(feature, "get-mark")) {
3400
; /* Don't die - this feature is supported */
3401
} else if (!strcmp(feature, "cat-blob")) {