diff options
author | Miriam Rubio <mirucam@gmail.com> | 2020-08-28 15:46:05 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-08-29 02:21:15 +0300 |
commit | ef5aef5ee0f8ff932f8beb21ff33a4dafee214b5 (patch) | |
tree | d1d2d587a16529413eeeb24bd7c08bd3a0d8ecca /builtin/bisect--helper.c | |
parent | e9b77c84a0a0df029f2a3a8114e9f22186e7da24 (diff) |
bisect--helper: BUG() in cmd_*() on invalid subcommand
In cmd_bisect__helper() function, if an invalid or no
subcommand is passed there is a BUG.
BUG() out instead of returning an error.
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Mentored-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Miriam Rubio <mirucam@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/bisect--helper.c')
-rw-r--r-- | builtin/bisect--helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/bisect--helper.c b/builtin/bisect--helper.c index cdda279b23..f464e95792 100644 --- a/builtin/bisect--helper.c +++ b/builtin/bisect--helper.c @@ -720,7 +720,7 @@ int cmd_bisect__helper(int argc, const char **argv, const char *prefix) res = bisect_start(&terms, argv, argc); break; default: - return error("BUG: unknown subcommand '%d'", cmdmode); + BUG("unknown subcommand %d", cmdmode); } free_terms(&terms); |