trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: October 2012

Re: [trinity-devel] What happend to GIT?

From: Slávek Banko <slavek.banko@...>
Date: Sun, 7 Oct 2012 02:10:15 +0200
On Saturday 06 of October 2012 21:15:18 Darrell Anderson wrote:
> > Have you checked your hard drive recently?  Any disk
> > issues could cause a mess in GIT, and I would argue could be likely to
> > show up in GIT before anything else simply because the entire GIT tree
> > uses many tens of thousands of small files.
>
> Nothing wrong with the drive. Just yesterday when booting the scheduled
> fsck ran on that partition.
>
> I was able to sync the tree after moving the contents of the kmplayer
> directory. Sort of --- nothing filled in to replace the missing files. I
> still get the "You are not currently on a branch..." messages with many
> modules.
>
> I don't want to waste 4+ GB of bandwidth recreating a whole new local tree,
> but I don't know what else to do. Not to mention that with a new tree none
> of the modules will have my user name in the config files.
>
> Darrell
>

To clean up the dangling objects use:

  git prune && git submodule foreach "git prune"


When are broken only some submodules, there is no need to re-clone the whole 
repository. It is sufficient to delete the relevant module folder and his git 
folder. If submodule not have git folder in his directory, you will find it 
in the top level .git/modules/_path_, for example:

  .git/modules/main/tdelibs

After removing is needed to do:

  git submodule init && git submodule update

This will re-clone only submodules that were previously removed.

Slavek
--