aboutsummaryrefslogtreecommitdiff
path: root/internal/testgit/object.go
diff options
context:
space:
mode:
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)
}