git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Fatal error from git bisect
@ 2006-02-09 18:51 Mark E Mason
  2006-02-09 19:50 ` Linus Torvalds
  0 siblings, 1 reply; 6+ messages in thread
From: Mark E Mason @ 2006-02-09 18:51 UTC (permalink / raw)
  To: git; +Cc: Mark E Mason

Hello,
 
I'm trying to use 'git bisect' and am running into the following error:

[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.

(this is the linux-mips.org kernel repository, a7900c9b is a child of
d166b5a2).

What does this mean?  How do I get around it?
As you can probably guess, I'm a beginner to git bisect.

Thanks in advance.
Mark

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Fatal error from git bisect
  2006-02-09 18:51 Fatal error from git bisect Mark E Mason
@ 2006-02-09 19:50 ` Linus Torvalds
  0 siblings, 0 replies; 6+ messages in thread
From: Linus Torvalds @ 2006-02-09 19:50 UTC (permalink / raw)
  To: Mark E Mason; +Cc: git


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?

		Linus

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Fatal error from git bisect
@ 2006-02-09 19:59 Mark E Mason
  2006-02-09 20:16 ` Linus Torvalds
  0 siblings, 1 reply; 6+ messages in thread
From: Mark E Mason @ 2006-02-09 19:59 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: git

Hello!
 
> From: Linus Torvalds [mailto:torvalds@osdl.org] 
[snip]
> 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



 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Fatal error from git bisect
  2006-02-09 19:59 Mark E Mason
@ 2006-02-09 20:16 ` Linus Torvalds
  0 siblings, 0 replies; 6+ messages in thread
From: Linus Torvalds @ 2006-02-09 20:16 UTC (permalink / raw)
  To: Mark E Mason; +Cc: git



On Thu, 9 Feb 2006, Mark E Mason wrote:
> 
> I thought of that, but even removing the workspace file doesn't get
> around this:

That doesn't necessarily help. Removing the workspace file potentially 
just makes the workspace even _more_ dirty, rather than less. It makes git 
think you've edited the file that it wants to check out another verion of.

(Of course, an extra file can _also_ be a sign of being dirty, so 
sometimes removing such a file _does_ generate a "more clean" tree).

Basically, "dirty" means that it doesn't match the head commit. 

> 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.

Well, it doesn't _change_ the repository, but it does move around in it, 
using "git-read-tree -u -m". That can error out if the old tree and the 
new tree differs in a particular file, and the workspace doesn't match the 
old tree in that file.

Now, it could be a git bug, but before you go there, try to make sure tat 
your tree is really clean. Do a

	git checkout -f master

followed by "git status" to make sure that the workspace is clean (no 
unexpected untracked files, no diffs against HEAD, no nothing). The "git 
checkout -f master" should have cleaned everything up, but it won't 
actually touch extra files that it doesn't know about, so..

		Linus

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Fatal error from git bisect
@ 2006-02-09 21:21 Mark E Mason
  2006-02-09 21:32 ` Junio C Hamano
  0 siblings, 1 reply; 6+ messages in thread
From: Mark E Mason @ 2006-02-09 21:21 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: git

Hello, 

> From: Linus Torvalds [mailto:torvalds@osdl.org] 
[snip]
> Now, it could be a git bug, but before you go there, try to 
> make sure tat your tree is really clean. Do a
> 
> 	git checkout -f master
> 
> followed by "git status" to make sure that the workspace is 
> clean (no unexpected untracked files, no diffs against HEAD, 
> no nothing). The "git checkout -f master" should have cleaned 
> everything up, but it won't actually touch extra files that 
> it doesn't know about, so..

That did the trick.  Thanks very much for the pointer, it's much
appreciated.

Thanks,
Mark

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Fatal error from git bisect
  2006-02-09 21:21 Mark E Mason
@ 2006-02-09 21:32 ` Junio C Hamano
  0 siblings, 0 replies; 6+ messages in thread
From: Junio C Hamano @ 2006-02-09 21:32 UTC (permalink / raw)
  To: Mark E Mason; +Cc: git, Linus Torvalds

"Mark E Mason" <mark.e.mason@broadcom.com> writes:

> That did the trick.  Thanks very much for the pointer, it's much
> appreciated.

Thanks, both of you.  This got me worried, especially when I am
at work and cannot pull the whole mips tree to take a look at it
myself.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-02-09 21:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-09 18:51 Fatal error from git bisect Mark E Mason
2006-02-09 19:50 ` Linus Torvalds
  -- strict thread matches above, loose matches on Subject: below --
2006-02-09 19:59 Mark E Mason
2006-02-09 20:16 ` Linus Torvalds
2006-02-09 21:21 Mark E Mason
2006-02-09 21:32 ` Junio C Hamano

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).