diff options
| author | 2025-11-17 00:00:00 +0000 | |
|---|---|---|
| committer | 2025-11-17 00:00:00 +0000 | |
| commit | f24da2291e8fc5dd6e80047cb45f06ec69a9059c (patch) | |
| tree | f719b645c0d3c4a16090092c589ccd47c529bf34 /pack_pack.go | |
| parent | Update perf stats (diff) | |
| signature | ||
Disable per-object validation during reads
In general, git inflates the packed objects and recomputes the object
hash before accepting them into hte object database during remote
operations. But when simply inflating/parsing the objects for read from
the local object store, it does not recompute the hash.
Diffstat (limited to 'pack_pack.go')
| -rw-r--r-- | pack_pack.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pack_pack.go b/pack_pack.go index d7b565f5..1ff4a705 100644 --- a/pack_pack.go +++ b/pack_pack.go @@ -70,10 +70,10 @@ func (repo *Repository) packReadAt(loc packlocation, want Hash) (StoredObject, e return nil, err } data := body.Bytes() - if !repo.verifyTypedObject(ty, data, want) { - body.Release() - return nil, ErrInvalidObject - } + // if !repo.verifyTypedObject(ty, data, want) { + // body.Release() + // return nil, ErrInvalidObject + // } obj, err := parseObjectBody(ty, want, data, repo) body.Release() return obj, err |
