aboutsummaryrefslogtreecommitdiff
path: root/internal/testgit
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-05-30 05:13:09 +0000
committerGravatar Runxi Yu2026-05-30 05:13:54 +0000
commit86a2a381cd99fcceef24587d95cddbe94c149482 (patch)
tree177837c9c72be3376c1f6e91670fa66c61512b4f /internal/testgit
parentci: Simplify with a local script (diff)
signatureNo signature
object/id: Parse should belong to object format next
Diffstat (limited to 'internal/testgit')
-rw-r--r--internal/testgit/object.go2
1 files changed, 1 insertions, 1 deletions
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)
}