From 2852f9a20613b145fe36a8fde5bfd31ff7e82291 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 21 Feb 2026 12:31:51 +0800 Subject: *: Use testgit.NewRepo --- object/commit_serialize_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'object/commit_serialize_test.go') 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) -- cgit v1.3.1-10-gc9f91