Dear Hraban,

In data domenica 13 aprile 2014 16:20:39, Henning Hraban Ramm ha scritto:
> I can’t fetch from invenio’s git repository any more since 26. March, I
> always get:
> 
> error: Unable to find 030ad4dc98fe0acc0034e8158655f96f6b66e3ee under
> http://invenio-software.org/repo/invenio Cannot obtain needed blob
> 030ad4dc98fe0acc0034e8158655f96f6b66e3ee while processing commit
> 6cfac47dfe32773fe67fcac61f2e5936d384a90a.
> error: Fetch failed.
> 
> Do others have the same problem? Then someone probably needs to run „git
> fsck && git gc“ on the main repo. Otherwise it’s just on my side...

It happens sometimes when the network connection drops while your are fetching 
from the given repo. Git is not so robust in this sense.

A way to fix it, that always work is to first clone again the given repo in a 
different local directory:

$ cd /tmp
/tmp $ git clone --bare http://invenio-software.org/repo/invenio

And then modify temporary the origin repo in the .git/config file of your 
repository to make it to point to /tmp/invenio.git rather than to 
http://invenio-software.org/repo/invenio.

If you then to a "git fetch", it will be able to restore the situation. 

After that, you can safely restore "origin" to point again to 
"http://invenio-software.org/repo/invenio";.

Cheers!
        Sam

-- 
Samuele Kaplun
Invenio Developer ** <http://invenio-software.org/>
INSPIRE Service Manager ** <http://inspirehep.net/>

Reply via email to