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_parse_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'object/commit_parse_test.go') diff --git a/object/commit_parse_test.go b/object/commit_parse_test.go index 66061f73..77a570af 100644 --- a/object/commit_parse_test.go +++ b/object/commit_parse_test.go @@ -11,7 +11,7 @@ import ( func TestCommitParseFromGit(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}) _, treeID, commitID := testRepo.MakeCommit(t, "subject\n\nbody") rawBody := testRepo.CatFile(t, "commit", commitID) -- cgit v1.3.1-10-gc9f91