From 94482cb2c97aa215f83940643c5d4c0933727dcb Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 21 Feb 2026 13:38:02 +0800 Subject: *: Modernize and lint; add CI --- object/parse.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'object/parse.go') 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) } -- cgit v1.3.1-10-gc9f91