Skip to contentSkip to conversation

Packfile SHA1 mismatch with itself

DISCUSSION Luben Tuikov 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

$GIT_DIR=. git-fsck-objects --full
error: Packfile ./objects/pack/pack-8cafdff4eb66bb2219016e4c0817cdb5cb326ab6.pack SHA1 mismatch with itself
fatal: unknown object type 0 in ./objects/pack/pack-8cafdff4eb66bb2219016e4c0817cdb5cb326ab6.pack

So,... anyone seen this?

Is there a way to fix it, other than blowing away the repo and recreating it?

Thanks,
Luben

#1 lore raw
Quoted 3 lines · Luben Tuikov

$GIT_DIR=. git-fsck-objects --full
error: Packfile ./objects/pack/pack-8cafdff4eb66bb2219016e4c0817cdb5cb326ab6.pack SHA1 mismatch with itself

Nothing rings a bell other than:

commit 8977c110b5bbd230c28c727ddb85856067d55cfb

Author: Junio C Hamano <[email protected]>
Date:   Wed Jan 3 23:09:08 2007 -0800

pack-check.c::verify_packfile(): don't run SHA-1 update on huge data

which is in 1.4.4.4. 'master' has an equilvalent due to the use of sliding mmap.