提交 fecd2dd3 编写于 作者: S Stephan Beyer 提交者: Junio C Hamano

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: NStephan Beyer <s-beyer@gmx.net>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 4123bcae
......@@ -450,6 +450,8 @@ bisect_replay () {
bisect_run () {
bisect_next_check fail
test -n "$*" || die "$(gettext "bisect run failed: no command provided.")"
while true
do
command="$@"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册