bisect: verify that a bogus option won't try to start a bisection
commit2f645b33baa607629c08c0821ccd0c12c8b6ab2f
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 12 Jan 2023 15:19:11 +0000 (12 16:19 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Jan 2023 22:17:14 +0000 (13 14:17 -0800)
tree16a65451f21fa6d697795e0a0273c855b68d6a34
parent6f977922853d7d1d99dc07f2f33ed0af54148834
bisect: verify that a bogus option won't try to start a bisection

We do not want `git bisect --bogus-option` to start a bisection. To
verify that, we look for the tell-tale error message `You need to start
by "git bisect start"` and fail if it was found.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6030-bisect-porcelain.sh