bisect run: die if no command is given

It was possible to invoke "git bisect run" without any command. This considers all commits as good commits since "$@"'s return value for empty $@ is 0. This is most probably not what a user wants (otherwise she would invoke "git bisect run true"), so not providing a command now results in an error. Signed-off-by: Stephan Beyer <s-beyer@gmx.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Stephan Beyer committed Nov 12, 2017 at 21:55 UTC fecd2dd36e6210c0211c812f1be2a07c71c6dcdc
1 file changed +2
git-bisect.sh
+2
@@ -450,6 +450,8 @@ bisect_replay () {
450 bisect_run () {
451 bisect_next_check fail
452
453 + test -n "$*" || die "$(gettext "bisect run failed: no command provided.")"
454 +
455 while true
456 do
457 command="$@"