diff options
author | Christian Couder <chriscool@tuxfamily.org> | 2008-04-12 11:17:36 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-04-13 00:16:13 +0200 |
commit | a179a303524c1b81ded1d04930f1edc6b5227c9d (patch) | |
tree | 02bce4aca939d26a005ba39516b930d0d6a66925 /git-bisect.sh | |
parent | bisect: fix bad rev checking in "git bisect good" (diff) | |
download | git-a179a303524c1b81ded1d04930f1edc6b5227c9d.tar.xz git-a179a303524c1b81ded1d04930f1edc6b5227c9d.zip |
bisect: report bad rev better
The previous one overwrote the variable used to report the bad input
when the input is actually bad, and we did not give a useful enough
information. This corrects it.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rwxr-xr-x | git-bisect.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git-bisect.sh b/git-bisect.sh index c8be9f7e8a..c99ffee122 100755 --- a/git-bisect.sh +++ b/git-bisect.sh @@ -155,9 +155,9 @@ bisect_state() { shift for rev in "$@" do - rev=$(git rev-parse --verify "$rev^{commit}") || + sha=$(git rev-parse --verify "$rev^{commit}") || die "Bad rev input: $rev" - bisect_write "$state" "$rev" + bisect_write "$state" "$sha" done ;; *,bad) die "'git bisect bad' can take only one argument." ;; |