diff options
author | Miriam Rubio <mirucam@gmail.com> | 2020-08-28 14:46:05 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-08-28 16:21:15 -0700 |
commit | ef5aef5ee0f8ff932f8beb21ff33a4dafee214b5 (patch) | |
tree | d1d2d587a16529413eeeb24bd7c08bd3a0d8ecca /builtin | |
parent | Tenth batch (diff) | |
download | tgif-ef5aef5ee0f8ff932f8beb21ff33a4dafee214b5.tar.xz |
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')
-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); |