Subject: Re: bug#40769: Git error: object not found when running guix pull

From: Ludovic Courtès <[email-masked]>
Date: Wed, 22 Apr 2020 23:07:16 +0200

Hi Mayeul,

Mayeul Cantan <[email-masked]> skribis:

> I was running guix pull, when a short-cirguit in my power supply cable
> turned my old laptop off.
>
> Having fixed the hardware issue, I am left with the following software
> problem when running `guix pull` on my user session:
>
>> guix pull: error: Git error: object not found - no match for id (aa78c596c9eaae946f779d8fa3c4125d08187648)

‘guix pull’ maintains Git clones under ~/.cache/guix/checkouts.
Probably the hardware issue led to a corrupt checkout there, hence the
error above.  You fix that by running:

  rm -rf ~/.cache/guix/checkouts

before running ‘guix pull’ again.

HTH!

Ludo’.