git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[BUG] Git bisect not finding the right commit

From
AKAndreas J. Koenig <andreas.koenig.7os6vvqr@franz.ak.mind.de>
Date
Jan 19, 2012, 03:29 UTC
Message-ID
<87r4yw8j4i.fsf@franz.ak.mind.de>

My git versions --------------- 1.7.9.rc2 and 1.7.8.3 and 1.7.2.5

The example output below was produced with 1.7.8.3 as provided by debian "git/unstable uptodate 1:1.7.8.3-1"

The result looks the same on all three versions. I did not do a byte-by-byte comparison, but the outcome is the same.

The repository -------------- http://perl5.git.perl.org/perl.git

Problem description ------------------- After v5.15.5-20-gfd76d40 a merge happened and v5.15.4-110-g27b29ec through v5.15.4-169-g3582575 were inserted. The code was developed before v5.15.5 but merged after v5.15.5.

	- A -> B      ->     C - D ->
	         \         /
	          - E - F -

A v5.15.5 B v5.15.5-20-gfd76d40 C v5.15.5-81-gcfe287a D v5.15.5-159-ga71d67b E v5.15.4-110-g27b29ec F v5.15.4-169-g3582575

The change in perl I tried to locate was v5.15.5-13-gff0cf12, between A and B. Bisect did not find it, it returned me E instead. Here the wrong bisect output:

% git bisect start v5.15.5-159-ga71d67b v5.15.5
Already on 'blead'
Bisecting: 77 revisions left to test after this (roughly 6 steps)
[cfe287a06b2ed98c25aebb477f6b400409f1fc85] Merge remote-tracking branch 'p5p/smoke-me/gsoc-pod' into blead
% git describe
v5.15.5-81-gcfe287a
% git bisect bad
Bisecting: 40 revisions left to test after this (roughly 5 steps)
[baf7658bacfa659cdab08050470b20ebd5973384] Update htmlview.t for new Pod::Html
% git describe
v5.15.4-149-gbaf7658
% git bisect bad
Bisecting: 19 revisions left to test after this (roughly 4 steps)
[fbf24e084f7e43d3caa066f3520b4c32ebbb2e3a] Start modifying test cases to suit new Pod::Html
% git describe
v5.15.4-129-gfbf24e0
% git bisect bad
Bisecting: 9 revisions left to test after this (roughly 3 steps)
[9949917516c8bca1036187e3e878ed8869558a65] Finish skeleton version of Pod::Html
% git describe
v5.15.4-119-g9949917
% git bisect bad
Bisecting: 4 revisions left to test after this (roughly 2 steps)
[953c3c52c300d440cb8e0811a812e78c12d45695] Remove spurious code after start of parser switch
% git describe
v5.15.4-114-g953c3c5
% git bisect bad
Bisecting: 2 revisions left to test after this (roughly 1 step)
[2618a74b5307cde59d3b3111031637fbe4bfe0cf] Remove cache feature for simplicity
% git describe
v5.15.4-111-g2618a74
% git bisect bad
Bisecting: 0 revisions left to test after this (roughly 0 steps)
[27b29ec338b08496d21538c0db7377d446529f8b] Remove deprecated --netscape flag
% git describe
v5.15.4-110-g27b29ec
% git bisect bad
27b29ec338b08496d21538c0db7377d446529f8b is the first bad commit
commit 27b29ec338b08496d21538c0db7377d446529f8b
Author: Marc Green <marcgreen@cpan.org>
Date:   Mon May 16 23:46:07 2011 -0400
 deprecated --netscape flag

:040000 040000 6759c516ef91450c73a01c5695051f31b787171e 080d58438a5c00aaaa6464f4c3a42c2ffd5f7ee0 M ext % git version git version 1.7.8.3

What I expected --------------- The above result is wrong, git should have found v5.15.5-13-gff0cf12. Git seemingly did not consider the revisions between v5.15.5 and v5.15.5-20-gfd76d40.

Let me know if you need further informations. (I'm not subscribed to the mailing list.)

Thanks && Regards,
-- 
andreas
Next: Junio C Hamano
Message 1 of 6 in “[BUG] Git bisect not finding the right commit”
  1. Andreas J. KoenigJan 19, 2012
  2. Junio C HamanoJan 19, 2012
  3. Andreas J. KoenigJan 20, 2012
  4. Junio C HamanoJan 20, 2012
  5. Jeff KingJan 24, 2012
  6. Johannes SixtJan 19, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.