summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-11-15 12:14:36 +0900
committerJunio C Hamano <gitster@pobox.com>2017-11-15 12:14:36 +0900
commit5066a008bb6a810f908c020de02a646cf3c92f34 (patch)
tree20f15cf6e547a833c2e2f9135c12477813f7911b
parent69bfdc614e52ddc66d86ca0d0a6a8fd779d0edca (diff)
parentfecd2dd36e6210c0211c812f1be2a07c71c6dcdc (diff)
downloadgit-5066a008bb6a810f908c020de02a646cf3c92f34.tar.gz
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="$@"