@matheusbsbs / matheus-bagliano / commits / a179a30352
Fork 0

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>

Christian Couder committed Apr 12, 2008 at 02:17 UTC a179a303524c1b81ded1d04930f1edc6b5227c9d
1 file changed +2 -2
git-bisect.sh
+2 -2
@@ -155,9 +155,9 @@ bisect_state() {
155 shift
156 for rev in "$@"
157 do
158 - rev=$(git rev-parse --verify "$rev^{commit}") ||
158 + sha=$(git rev-parse --verify "$rev^{commit}") ||
159 die "Bad rev input: $rev"
160 - bisect_write "$state" "$rev"
160 + bisect_write "$state" "$sha"
161 done ;;
162 *,bad)
163 die "'git bisect bad' can take only one argument." ;;