Re: IRC discussion re: submodules & missing refs/heads/master

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

On 19 April 2012 09:14, Heiko Voigt <hvoigt@xxxxxxxxxx> wrote:
> From the subject I deduce that you have a some problem involving
> submodules. Could you please clearly summarise what you found and
> possibly provide a recipe (script snippet) how to reproduce the issue?

The transcript was provided for context, after the transcript are
details of the problem and solution.

Summarised is as follows:

on ,  running "git gc" while inside a submodule path removes
refs/heads/master  for that submodule in ~/.git/modules  , and for
some reason, sub-modules still require those files to work properly at , ( which results in 'git status' bailing with 'oops' from the
main repo )

Migrating to a newer git makes the problem vanish, as the newer git
uses info/refs for both the main repo and the submodule, and the
presence/absense of refs/heads/master is unimportant.

Solving it is reasonably straight forward on, manually extract
the SHA1 from the modules info/refs file, and inject it back into the
relevant file refs/heads/master  , and things return to normal.


perl -e  "print substr( \"edrgmaM  SPA NOcomil.ic\\@tfrken\", \$_ * 3,
3 ) for ( 9,8,0,7,1,6,5,4,3,2 );"
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at

[Newbies FAQ]     [Linux Kernel Development]     [Free Online Dating]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Free Online Dating]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]     [Linux Resources]

Add to Google