diff options
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 } |
