From 86a2a381cd99fcceef24587d95cddbe94c149482 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 30 May 2026 05:13:09 +0000 Subject: object/id: Parse should belong to object format --- internal/testgit/object.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/testgit') diff --git a/internal/testgit/object.go b/internal/testgit/object.go index 5d2a38ec..a46ef02b 100644 --- a/internal/testgit/object.go +++ b/internal/testgit/object.go @@ -19,7 +19,7 @@ func (repo *Repo) HashObject(tb testing.TB, ty typ.Type, body io.Reader) id.Obje tb.Fatalf("hash-object: %v", hex) } - id, err := id.FromHex(repo.objectFormat, string(hex)) + id, err := repo.objectFormat.FromString(string(hex)) if err != nil { tb.Fatalf("parse git hash-object output %q: %v", hex, err) } -- cgit v1.3.1-10-gc9f91