From: Andi Kleen <andi@firstfloor.org>
To: git@vger.kernel.org
Subject: [PATCH] Improve git bisect error message
Date: Sat, 26 Apr 2008 15:39:38 +0200 [thread overview]
Message-ID: <20080426133937.GA27677@basil.nowhere.org> (raw)
It took me some time to figure out what this error message meant and
how to fix the problem. So let's improve it a little.
-Andi
--- git-1.5.4/git-bisect~ 2008-02-09 13:37:16.000000000 +0100
+++ git-1.5.4/git-bisect 2008-04-26 01:26:19.000000000 +0200
@@ -71,7 +71,10 @@
git checkout $branch || exit
;;
refs/heads/*)
- [ -s "$GIT_DIR/head-name" ] && die "won't bisect on seeked tree"
+ if [ -s "$GIT_DIR/head-name" ] ; then
+ echo >&2 "Please run git bisect reset"
+ die "won't bisect on seeked tree"
+ fi
echo "${head#refs/heads/}" >"$GIT_DIR/head-name"
;;
*)
next reply other threads:[~2008-04-26 13:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-26 13:39 Andi Kleen [this message]
2008-04-26 18:53 ` [PATCH] Improve git bisect error message Christian Couder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080426133937.GA27677@basil.nowhere.org \
--to=andi@firstfloor.org \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).