Skip to content

Commit 5066a00

Browse files
committed
Merge branch 'sb/bisect-run-empty'
"git bisect run" that did not specify any command to run used to go ahead and treated all commits to be tested as 'good'. This has been corrected by making the command error out. * sb/bisect-run-empty: bisect run: die if no command is given
2 parents 69bfdc6 + fecd2dd commit 5066a00

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git-bisect.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,8 @@ bisect_replay () {
450450
bisect_run () {
451451
bisect_next_check fail
452452

453+
test -n "$*" || die "$(gettext "bisect run failed: no command provided.")"
454+
453455
while true
454456
do
455457
command="$@"

0 commit comments

Comments
 (0)