Re: [ANNOUNCE] Cogito-0.12
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Jul 8, 2005, 00:23 UTC
- Message-ID
- <Pine.LNX.4.58.0507071720330.25104@g5.osdl.org>
- In-Reply-To
- <12c511ca050707170964a2cc92@mail.gmail.com>
On Thu, 7 Jul 2005, Tony Luck wrote:
Show 11 quoted lines
>
> 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 failedOk. 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).
> If I try it again, it thinks things are up to date (since it mistakenly > updated the .git/refs/heads/linus), but then fails to apply (since it > doesn't have the objects it needs).
Ok, that's a worse bug, it really shouldn't update the head until _after_ the pull has succeeded.
Linus