Re: [ANNOUNCE] Cogito-0.12
- From
- Russell King <rmk@arm.linux.org.uk>
- Date
- Jul 9, 2005, 21:58 UTC
- Message-ID
- <20050709225818.A31045@flint.arm.linux.org.uk>
- In-Reply-To
- <Pine.LNX.4.58.0507071720330.25104@g5.osdl.org>
On Thu, Jul 07, 2005 at 05:23:26PM -0700, Linus Torvalds wrote:
Show 19 quoted lines
> On Thu, 7 Jul 2005, Tony Luck wrote:
> > This is what happens ("linus" is a local branch just pulled from kernel.org,
> > so it just contains one pack file and its index).
> >
> > $ cg-update linus
> > `/home/aegl/GIT/linus/.git/refs/heads/master' -> `.git/refs/heads/linus'
> > does not exist /home/aegl/GIT/linus/.git/objects/04/3d051615aa5da09a7e44f1edbb69
> > 798458e067
> > Cannot obtain needed object 043d051615aa5da09a7e44f1edbb69798458e067
> > while processing commit 0000000000000000000000000000000000000000.
> > cg-pull: objects pull failed
>
> Ok. The immediate fix is to just unpack the pack:
>
> mv .git/objects/pack/* .git/
> for i in .git/*.pack; do git-unpack-objects < $i; done
>
> (or similar - the above is untested, but I think it should be obvious
> enough what I'm trying to do).This is evil on the bandwidth, since you'll keep refetching the packed object (64MB of it) over and over.
However, I've tried the above, and I get:
$ mv .git/objects/pack/* .git/ $ for i in .git/*.pack; do git-unpack-objects < $i; done Unpacking 55435 objects fatal: inflate returned -3
so it seems that the pack is corrupt... or something.
$ md5sum .git/*.pack 2be38f2947b99bcd088c1930122aadec .git/pack-e3117bbaf6a59cb53c3f6f0d9b17b9433f0e4135.pack
and git-fsck-cache produces lots and lots of:
dangling tree fae688b62db0b553aae0bf17f0f70e93819dec2b
broken link from tree faed7d798b84f107dbb9ff8fa97fb909c9ea5347
to blob 008e19210e66f01fbaef1aba30243850766b8b12
broken link from tree faed7d798b84f107dbb9ff8fa97fb909c9ea5347
to blob edae09a4b021e353ab4fbba756e31492fbb8fd2e
broken link from tree faed7d798b84f107dbb9ff8fa97fb909c9ea5347
to blob d098b3ba35384fb912989348fd6da59820711ca4
... etc ...-- Russell King