summaryrefslogtreecommitdiff
path: root/git-bisect.sh
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2008-04-12 02:17:36 -0700
committerJunio C Hamano <gitster@pobox.com>2008-04-12 15:16:13 -0700
commita179a303524c1b81ded1d04930f1edc6b5227c9d (patch)
tree02bce4aca939d26a005ba39516b930d0d6a66925 /git-bisect.sh
parente3389075c6160c46cf0e2a443deab1966628ed57 (diff)
downloadgit-a179a303524c1b81ded1d04930f1edc6b5227c9d.tar.gz
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 'git-bisect.sh')
-rwxr-xr-xgit-bisect.sh4
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." ;;