From d88c8e20aebd9408df0306e97dffc2896950342d Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 20 Feb 2026 22:59:14 +0800 Subject: *: Replace repo with testRepo --- object/commit_serialize_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'object/commit_serialize_test.go') diff --git a/object/commit_serialize_test.go b/object/commit_serialize_test.go index 5f4cf0cf..9067d511 100644 --- a/object/commit_serialize_test.go +++ b/object/commit_serialize_test.go @@ -10,10 +10,10 @@ import ( func TestCommitSerialize(t *testing.T) { testgit.ForEachAlgorithm(t, func(t *testing.T, algo objectid.Algorithm) { - repo := testgit.NewBareRepo(t, algo) - _, _, commitID := repo.MakeCommit(t, "subject\n\nbody") + testRepo := testgit.NewBareRepo(t, algo) + _, _, commitID := testRepo.MakeCommit(t, "subject\n\nbody") - rawBody := repo.CatFile(t, "commit", commitID) + rawBody := testRepo.CatFile(t, "commit", commitID) commit, err := object.ParseCommit(rawBody, algo) if err != nil { t.Fatalf("ParseCommit: %v", err) -- cgit v1.3.1-10-gc9f91