diff options
| author | 2025-11-17 00:00:00 +0000 | |
|---|---|---|
| committer | 2025-11-17 00:00:00 +0000 | |
| commit | f24da2291e8fc5dd6e80047cb45f06ec69a9059c (patch) | |
| tree | f719b645c0d3c4a16090092c589ccd47c529bf34 /repo.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 'repo.go')
| -rw-r--r-- | repo.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -159,7 +159,7 @@ func (repo *Repository) computeRawHash(data []byte) Hash { } // verifyRawObject verifies a raw object against its expected hash. -func (repo *Repository) verifyRawObject(buf []byte, want Hash) bool { +func (repo *Repository) verifyRawObject(buf []byte, want Hash) bool { //nolint:unused if want.size != repo.hashSize { return false } @@ -167,7 +167,7 @@ func (repo *Repository) verifyRawObject(buf []byte, want Hash) bool { } // verifyTypedObject verifies a typed object against its expected hash. -func (repo *Repository) verifyTypedObject(ty ObjectType, body []byte, want Hash) bool { +func (repo *Repository) verifyTypedObject(ty ObjectType, body []byte, want Hash) bool { //nolint:unused if want.size != repo.hashSize { return false } |
