diff options
| author | 2025-11-16 00:00:00 +0000 | |
|---|---|---|
| committer | 2025-11-16 00:00:00 +0000 | |
| commit | 9ac827977b8f430906110ecd2030324248fff604 (patch) | |
| tree | b0f8fdb46252bef429beb27190a2cfc0cbd42540 /pack_pack.go | |
| parent | README: Add my Villosa instance (diff) | |
| signature | ||
Support multiple hash sizes in one build
Diffstat (limited to 'pack_pack.go')
| -rw-r--r-- | pack_pack.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pack_pack.go b/pack_pack.go index eed3a4af..757c5c02 100644 --- a/pack_pack.go +++ b/pack_pack.go @@ -69,11 +69,11 @@ func (repo *Repository) packReadAt(loc packlocation, want Hash) (Object, error) return nil, err } data := body.Bytes() - if !verifyTypedObject(ty, data, want) { + if !verifyTypedObject(ty, data, want, repo.HashSize) { body.Release() return nil, ErrInvalidObject } - obj, err := parseObjectBody(ty, want, data) + obj, err := parseObjectBody(ty, want, data, repo.HashSize) body.Release() return obj, err } |
