aboutsummaryrefslogtreecommitdiff
path: root/object/commit_serialize_test.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-02-21 12:31:51 +0800
committerGravatar Runxi Yu2026-02-21 12:31:51 +0800
commit2852f9a20613b145fe36a8fde5bfd31ff7e82291 (patch)
tree2df08e4a3f21e0db0f0eacf026bf392d3ba760f7 /object/commit_serialize_test.go
parenttestgit: Remove old new-repo helpers and use NewRepo with good RepoOptions (diff)
signatureNo signature
*: Use testgit.NewRepo
Diffstat (limited to 'object/commit_serialize_test.go')
-rw-r--r--object/commit_serialize_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/object/commit_serialize_test.go b/object/commit_serialize_test.go
index 9067d511..6db48143 100644
--- a/object/commit_serialize_test.go
+++ b/object/commit_serialize_test.go
@@ -10,7 +10,7 @@ import (
func TestCommitSerialize(t *testing.T) {
testgit.ForEachAlgorithm(t, func(t *testing.T, algo objectid.Algorithm) {
- testRepo := testgit.NewBareRepo(t, algo)
+ testRepo := testgit.NewRepo(t, testgit.RepoOptions{ObjectFormat: algo, Bare: true})
_, _, commitID := testRepo.MakeCommit(t, "subject\n\nbody")
rawBody := testRepo.CatFile(t, "commit", commitID)