diff options
| author | 2026-02-21 13:38:02 +0800 | |
|---|---|---|
| committer | 2026-02-21 14:28:15 +0800 | |
| commit | 94482cb2c97aa215f83940643c5d4c0933727dcb (patch) | |
| tree | bee22fa113542abd1b863ee251fdcf0f9bd409b5 /object/parse.go | |
| parent | diff: Add package-level doc comment (diff) | |
| signature | No signature | |
*: Modernize and lint; add CI v0.1.17
Diffstat (limited to 'object/parse.go')
| -rw-r--r-- | object/parse.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/object/parse.go b/object/parse.go index ad9750fe..1b15f377 100644 --- a/object/parse.go +++ b/object/parse.go @@ -19,6 +19,8 @@ func ParseObjectWithoutHeader(ty objecttype.Type, body []byte, algo objectid.Alg return ParseCommit(body, algo) case objecttype.TypeTag: return ParseTag(body, algo) + case objecttype.TypeInvalid, objecttype.TypeFuture, objecttype.TypeOfsDelta, objecttype.TypeRefDelta: + return nil, fmt.Errorf("object: unsupported object type %d", ty) default: return nil, fmt.Errorf("object: unsupported object type %d", ty) } |
