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

RE: Fatal error from git bisect

From
MMMark E Mason <mark.e.mason@broadcom.com>
Date
Feb 9, 2006, 19:59 UTC
Message-ID
<7E000E7F06B05C49BDBB769ADAF44D0773A4A8@NT-SJCA-0750.brcm.ad.broadcom.com>
Hello!
 
> From: Linus Torvalds [mailto:torvalds@osdl.org] 
[snip]
Show 10 quoted lines
> On Thu, 9 Feb 2006, Mark E Mason wrote:
> >  
> > I'm trying to use 'git bisect' and am running into the 
> following error:
> >
> > fatal: Entry 'block/elevator.c' would be overwritten by 
> merge. Cannot merge.
> 
> This seems to mean that you have a dirty block/elevator.c 
> file. Have you perhaps edited it?

I thought of that, but even removing the workspace file doesn't get around this:

[mason@hawaii linux.git]$ git bisect reset
[mason@hawaii linux.git]$ git bisect start
[mason@hawaii linux.git]$ git bisect good
d166b5a220813a08a79312fc384d11e1c57e9072
[mason@hawaii linux.git]$ git bisect bad
a7900c9bdb64c11688719bef9f6373fbc4c276ab
Bisecting: 116 revisions left to test after this
fatal: Entry 'block/elevator.c' would be overwritten by merge. Cannot
merge.
[mason@hawaii linux.git]$ rm block/elevator.c
[mason@hawaii linux.git]$ git bisect bad
a7900c9bdb64c11688719bef9f6373fbc4c276ab
Bisecting: 116 revisions left to test after this
fatal: Entry 'block/elevator.c' would be overwritten by merge. Cannot
merge.

I've made no commits to this tree - it's just an up-to-date pull of the linux-mips.org tree. I also have no local edits at this point.

[mason@hawaii linux.git]$ git diff [mason@hawaii linux.git]$

What's puzzling me is that (as I understand it) git bisect simply manipulates the workspace, not the repository.

Thanks! Mark

 
Next: Linus Torvalds
Message 1 of 2 in “RE: Fatal error from git bisect”
  1. Mark E MasonFeb 9, 2006
  2. Linus TorvaldsFeb 9, 2006

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.