git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git submodule merge madness
@ 2009-01-09 21:50 Ask Bjørn Hansen
  2009-01-10  1:13 ` Ask Bjørn Hansen
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Ask Bjørn Hansen @ 2009-01-09 21:50 UTC (permalink / raw)
  To: git

Hi,

We've (again) replaced a few directories with submodules.  Man, it's  
madness!

The typical problem is that we get an error trying to merge a "pre- 
submodule" branch into master:

	fatal: cannot read object 894c77319a18c4d48119c2985a9275c9f5883584  
'some/sub/dir': It is a submodule!
Mark Levedahl wrote an example in July, but I don't think he got any  
replies:  http://marc.info/?l=git&m=121587851313303
Any ideas?   Is there something we can do?    I see a strong  
correlation between adding a new submodule and the number of "git  
sucks" messages on our internal IRC server.


  - ask

-- 
http://develooper.com/ - http://askask.com/

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

* Re: git submodule merge madness
  2009-01-09 21:50 git submodule merge madness Ask Bjørn Hansen
@ 2009-01-10  1:13 ` Ask Bjørn Hansen
  2009-01-12 13:27 ` Andreas Ericsson
  2009-01-14 22:55 ` Johannes Schindelin
  2 siblings, 0 replies; 7+ messages in thread
From: Ask Bjørn Hansen @ 2009-01-10  1:13 UTC (permalink / raw)
  To: Ask Bjørn Hansen; +Cc: git


On Jan 9, 2009, at 1:50 PM, Ask Bjørn Hansen wrote:

> The typical problem is that we get an error trying to merge a "pre- 
> submodule" branch into master:
>
> 	fatal: cannot read object 894c77319a18c4d48119c2985a9275c9f5883584  
> 'some/sub/dir': It is a submodule!
>
> Mark Levedahl wrote an example in July, but I don't think he got any  
> replies:  http://marc.info/?l=git&m=121587851313303

Replying to myself for the archives:

Looking in the code I noticed it's the recursive merge algorithm  
giving that error.  Making it use the resolve strategy ("git merge -s  
resolve") made it work in the cases I had today, yay.

  - ask

-- 
http://develooper.com/ - http://askask.com/

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

* Re: git submodule merge madness
  2009-01-09 21:50 git submodule merge madness Ask Bjørn Hansen
  2009-01-10  1:13 ` Ask Bjørn Hansen
@ 2009-01-12 13:27 ` Andreas Ericsson
  2009-01-14 22:55 ` Johannes Schindelin
  2 siblings, 0 replies; 7+ messages in thread
From: Andreas Ericsson @ 2009-01-12 13:27 UTC (permalink / raw)
  To: Ask Bjørn Hansen; +Cc: git

Ask Bjørn Hansen wrote:
> Hi,
> 
> We've (again) replaced a few directories with submodules.  Man, it's 
> madness!
> 
> The typical problem is that we get an error trying to merge a 
> "pre-submodule" branch into master:
> 
>     fatal: cannot read object 894c77319a18c4d48119c2985a9275c9f5883584 
> 'some/sub/dir': It is a submodule!
> Mark Levedahl wrote an example in July, but I don't think he got any 
> replies:  http://marc.info/?l=git&m=121587851313303
> Any ideas?   Is there something we can do?    I see a strong correlation 
> between adding a new submodule and the number of "git sucks" messages on 
> our internal IRC server.
> 

Well, reworking the repository structure (which is essentially what you're
doing) should be a flag day. Merge stuff before that and mark it in some
way so that you don't run into the problems you're seeing now.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

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

* Re: git submodule merge madness
  2009-01-09 21:50 git submodule merge madness Ask Bjørn Hansen
  2009-01-10  1:13 ` Ask Bjørn Hansen
  2009-01-12 13:27 ` Andreas Ericsson
@ 2009-01-14 22:55 ` Johannes Schindelin
  2009-01-14 23:49   ` Ask Bjørn Hansen
  2 siblings, 1 reply; 7+ messages in thread
From: Johannes Schindelin @ 2009-01-14 22:55 UTC (permalink / raw)
  To: Ask Bjørn Hansen; +Cc: git

[-- Attachment #1: Type: TEXT/PLAIN, Size: 662 bytes --]

Hi,

On Fri, 9 Jan 2009, Ask Bjørn Hansen wrote:

> We've (again) replaced a few directories with submodules.  Man, it's 
> madness!
> 
> The typical problem is that we get an error trying to merge a "pre-submodule"
> branch into master:
> 
> 	fatal: cannot read object 894c77319a18c4d48119c2985a9275c9f5883584
> 'some/sub/dir': It is a submodule!
> Mark Levedahl wrote an example in July, but I don't think he got any replies:
> http://marc.info/?l=git&m=121587851313303

So.... Which Git version are you are using?  Did you test any Git version 
containing the commit d5a84fb(merge-recursive: fail gracefully with 
directory/submodule conflicts)?

Ciao,
Dscho

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

* Re: git submodule merge madness
  2009-01-14 22:55 ` Johannes Schindelin
@ 2009-01-14 23:49   ` Ask Bjørn Hansen
  2009-01-15  0:32     ` Sverre Rabbelier
  2009-01-15  0:36     ` Johannes Schindelin
  0 siblings, 2 replies; 7+ messages in thread
From: Ask Bjørn Hansen @ 2009-01-14 23:49 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: git


On Jan 14, 2009, at 2:55 PM, Johannes Schindelin wrote:

>> We've (again) replaced a few directories with submodules.  Man, it's
>> madness!
>>
>> The typical problem is that we get an error trying to merge a "pre- 
>> submodule"
>> branch into master:
>>
>> 	fatal: cannot read object 894c77319a18c4d48119c2985a9275c9f5883584
>> 'some/sub/dir': It is a submodule!
>> Mark Levedahl wrote an example in July, but I don't think he got  
>> any replies:
>> http://marc.info/?l=git&m=121587851313303
>
> So.... Which Git version are you are using?  Did you test any Git  
> version
> containing the commit d5a84fb(merge-recursive: fail gracefully with
> directory/submodule conflicts)?

IIRC I tried 1.6.1 and master as of about a week ago.

I don't see d5a84fb in my repository (and google doesn't find it  
referenced anywhere when I search for "directory/submodule conflicts".


  - ask

-- 
http://develooper.com/ - http://askask.com/

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

* Re: git submodule merge madness
  2009-01-14 23:49   ` Ask Bjørn Hansen
@ 2009-01-15  0:32     ` Sverre Rabbelier
  2009-01-15  0:36     ` Johannes Schindelin
  1 sibling, 0 replies; 7+ messages in thread
From: Sverre Rabbelier @ 2009-01-15  0:32 UTC (permalink / raw)
  To: Ask Bjørn Hansen; +Cc: Johannes Schindelin, git

On Thu, Jan 15, 2009 at 00:49, Ask Bjørn Hansen <ask@develooper.com> wrote:
> On Jan 14, 2009, at 2:55 PM, Johannes Schindelin wrote:
>> So.... Which Git version are you are using?  Did you test any Git version
>> containing the commit d5a84fb(merge-recursive: fail gracefully with
>> directory/submodule conflicts)?
>
> IIRC I tried 1.6.1 and master as of about a week ago.
>
> I don't see d5a84fb in my repository (and google doesn't find it referenced
> anywhere when I search for "directory/submodule conflicts".

I checked current master:
$ git log --grep="fail gracefully with"
returns nothing. Searching the archive I don't see any reference to
"fail gracefully with" either. I don't see it on your gitweb [0]
either. Did that commit magically dissapear?

[0] http://repo.or.cz/w/git/dscho.git

-- 
Cheers,

Sverre Rabbelier

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

* Re: git submodule merge madness
  2009-01-14 23:49   ` Ask Bjørn Hansen
  2009-01-15  0:32     ` Sverre Rabbelier
@ 2009-01-15  0:36     ` Johannes Schindelin
  1 sibling, 0 replies; 7+ messages in thread
From: Johannes Schindelin @ 2009-01-15  0:36 UTC (permalink / raw)
  To: Ask Bjørn Hansen; +Cc: git

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1197 bytes --]

Hi,

On Wed, 14 Jan 2009, Ask Bjørn Hansen wrote:

> On Jan 14, 2009, at 2:55 PM, Johannes Schindelin wrote:
> 
> > >We've (again) replaced a few directories with submodules.  Man, it's 
> > >madness!
> > >
> > >The typical problem is that we get an error trying to merge a 
> > >"pre-submodule" branch into master:
> > >
> > >	fatal: cannot read object 894c77319a18c4d48119c2985a9275c9f5883584
> > >'some/sub/dir': It is a submodule!
> > >Mark Levedahl wrote an example in July, but I don't think he got any
> > >replies:
> > >http://marc.info/?l=git&m=121587851313303
> >
> >So.... Which Git version are you are using?  Did you test any Git version
> >containing the commit d5a84fb(merge-recursive: fail gracefully with
> >directory/submodule conflicts)?
> 
> IIRC I tried 1.6.1 and master as of about a week ago.
> 
> I don't see d5a84fb in my repository (and google doesn't find it referenced
> anywhere when I search for "directory/submodule conflicts".

Well.  Can do arithmetics in my head after midnight, but not think 
straight...

In any case, could you please provide a patch to the testsuite 
demonstrating the problem?  History shows that such patches are very 
helpful.

Ciao,
Dscho

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

end of thread, other threads:[~2009-01-15  0:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-09 21:50 git submodule merge madness Ask Bjørn Hansen
2009-01-10  1:13 ` Ask Bjørn Hansen
2009-01-12 13:27 ` Andreas Ericsson
2009-01-14 22:55 ` Johannes Schindelin
2009-01-14 23:49   ` Ask Bjørn Hansen
2009-01-15  0:32     ` Sverre Rabbelier
2009-01-15  0:36     ` Johannes Schindelin

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