summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-11-15 12:14:36 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-11-15 12:14:36 +0900
commit5066a008bb6a810f908c020de02a646cf3c92f34 (patch)
tree20f15cf6e547a833c2e2f9135c12477813f7911b
parentMerge branch 'rd/bisect-view-is-visualize' (diff)
parentbisect run: die if no command is given (diff)
downloadtgif-5066a008bb6a810f908c020de02a646cf3c92f34.tar.xz
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
-rwxr-xr-xgit-bisect.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/git-bisect.sh b/git-bisect.sh
index a82256e345..54cbfecc5a 100755
--- a/git-bisect.sh
+++ b/git-bisect.sh
@@ -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="$@"