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>
Miriam Rubio committed
Aug 28, 2020 at 14:46 UTC
ef5aef5ee0f8ff932f8beb21ff33a4dafee214b5
1 file changed
+1
-1
builtin/bisect--helper.c
+1
-1
@@ -720,7 +720,7 @@ int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
720
res = bisect_start(&terms, argv, argc);
721
break;
722
default:
723
- return error("BUG: unknown subcommand '%d'", cmdmode);
723
+ BUG("unknown subcommand %d", cmdmode);
724
}
725
free_terms(&terms);
726