aboutsummaryrefslogtreecommitdiff
path: root/internal/testgit/object.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-05-24 11:07:16 +0000
committerGravatar Runxi Yu2026-05-24 11:09:59 +0000
commit36340918040627d93808c09dea8d9bd7b7457f82 (patch)
treedab5fa0edbf2f2bf315d1fda73c0f7ac5c8fc6d9 /internal/testgit/object.go
parentinternal/testgit: Add Algorithm method (diff)
signatureNo signature
object/id: Rename algorithm to object format
Diffstat (limited to 'internal/testgit/object.go')
-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 566c8b82..fe4b329e 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.algo, string(hex))
+ id, err := id.FromHex(repo.objectFormat, string(hex))
if err != nil {
tb.Fatalf("parse git hash-object output %q: %v", hex, err)
}