From: Junio C Hamano <junkio@cox.net>
To: Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk>
Cc: git@vger.kernel.org
Subject: Re: bisect gives strange answer
Date: Wed, 03 Aug 2005 23:57:01 -0700 [thread overview]
Message-ID: <7v8xzi42bm.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: E1E0XjN-000102-Un@approximate.corpus.cam.ac.uk
Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk> writes:
> + git bisect bad
> Bisecting: 2 revisions left to test after this
> + cat .git/HEAD
> b4634484815e1879512a23e4f59eef648135c30a
> + git bisect bad
> b4634484815e1879512a23e4f59eef648135c30a is first bad commit
> diff-tree b4634484815e1879512a23e4f59eef648135c30a (from 3d3c2ae1101c1f2dff7e2f9d514769779dbd2737)
> The answer makes no sense since my .config doesn't use the bt87x driver
> (the TP600X uses a snd-cs46xx). To be sure, I checked the diff with
>
> git diff 3d3c2ae1101c1f2dff7e2f9d514769779dbd2737..b4634484815e1879512a23e4f59eef648135c30a
>
> The commit changed only sound/pci/bt87x.c
>
> I do believe this line at the end of the bisection:
>
> b4634484815e1879512a23e4f59eef648135c30a is first bad commit
>...
> I suspect that bisect jumped the gun at the end, and that there are a
> few more revisions to test.
Thank you for a very useful reproduction recipe. I think this
is my bug. Could you try this please?
------------
diff --git a/git-bisect-script b/git-bisect-script
--- a/git-bisect-script
+++ b/git-bisect-script
@@ -107,8 +107,8 @@ bisect_next() {
rev=$(eval "git-rev-list --bisect $good $bad") || exit
nr=$(eval "git-rev-list $rev $good" | wc -l) || exit
if [ "$nr" -le "1" ]; then
- echo "$bad is first bad commit"
- git-diff-tree --pretty $bad
+ echo "$rev is first bad commit"
+ git-diff-tree --pretty $rev
exit 0
fi
echo "Bisecting: $nr revisions left to test after this"
next prev parent reply other threads:[~2005-08-04 6:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-04 4:53 bisect gives strange answer Sanjoy Mahajan
2005-08-04 6:57 ` Junio C Hamano [this message]
2005-08-04 7:23 ` Sanjoy Mahajan
2005-08-04 17:26 ` Greg KH
2005-08-04 17:41 ` Sanjoy Mahajan
2005-08-04 18:27 ` Dave Jones
2005-08-04 18:32 ` Sanjoy Mahajan
2005-08-04 18:43 ` Junio C Hamano
2005-08-04 19:28 ` Sam Ravnborg
2005-08-05 15:38 ` Sanjoy Mahajan
2005-08-07 17:06 ` Junio C Hamano
[not found] <E1E3HoN-0002ET-Ht@approximate.corpus.cam.ac.uk>
2005-08-11 22:07 ` Junio C Hamano
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=7v8xzi42bm.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=git@vger.kernel.org \
--cc=sanjoy@mrao.cam.ac.uk \
/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).