# Packfile SHA1 mismatch with itself

2 messages from 2007-01-19 to 2007-01-19. Participants: Luben Tuikov, Junio C Hamano.
Thread: https://gitlist.dev/t/6439

## Luben Tuikov, 2007-01-19 20:35

Subject: Packfile SHA1 mismatch with itself
Message-ID: <510820.93884.qm@web31802.mail.mud.yahoo.com>
URL: https://gitlist.dev/e/510820.93884.qm%40web31802.mail.mud.yahoo.com

```
$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

```

## Junio C Hamano, 2007-01-19 21:22

Subject: Re: Packfile SHA1 mismatch with itself
Message-ID: <7vlkjyg1a5.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vlkjyg1a5.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <510820.93884.qm@web31802.mail.mud.yahoo.com>

```
Luben Tuikov <ltuikov@yahoo.com> writes:

> $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 <junkio@cox.net>
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.

```
