diff options
| author | 2025-11-22 08:00:00 +0800 | |
|---|---|---|
| committer | 2025-11-22 08:00:00 +0800 | |
| commit | 65600ea051adc75d09e9763fb6e11e79602f76b6 (patch) | |
| tree | e6bdbb8b6108026667dfdb08b2639d171c6c4392 /obj.go | |
| parent | obj: call parseObjectBody in ReadObject instead of loose/pack readers (diff) | |
| signature | No signature | |
obj: Return ErrNotFound, not ErrInvalidObject, when not found in packs
Diffstat (limited to 'obj.go')
| -rw-r--r-- | obj.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -106,7 +106,7 @@ func (repo *Repository) ReadObject(id Hash) (StoredObject, error) { } ty, body, err = repo.packRead(id) if errors.Is(err, ErrNotFound) { - return nil, ErrInvalidObject + return nil, ErrNotFound } if err != nil { return nil, err |
