From: Junio C Hamano Date: Sat, 17 Sep 2005 20:51:03 +0000 (-0700) Subject: Do not fail after calling bisect_auto_next() X-Git-Tag: v0.99.7~10 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=434d036fe4b8f1b7571eb912957590a483944b26;p=git.git Do not fail after calling bisect_auto_next() As a convenience measure, 'bisect bad' or 'bisect good' automatically does 'bisect next' when it knows it can, but the result of that test to see if it can was leaking through as the exit code from the whole thing, which was bad. Noticed by Anton Blanchard. Signed-off-by: Junio C Hamano --- diff --git a/git-bisect.sh b/git-bisect.sh index a5be3a72..8dc77c99 100755 --- a/git-bisect.sh +++ b/git-bisect.sh @@ -110,7 +110,7 @@ bisect_next_check() { } bisect_auto_next() { - bisect_next_check && bisect_next + bisect_next_check && bisect_next || : } bisect_next() {