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 --- internal/testgit/repo_commit_tree.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/testgit/repo_commit_tree.go') diff --git a/internal/testgit/repo_commit_tree.go b/internal/testgit/repo_commit_tree.go index 1b33b5c0..f8d78421 100644 --- a/internal/testgit/repo_commit_tree.go +++ b/internal/testgit/repo_commit_tree.go @@ -7,15 +7,15 @@ import ( ) // CommitTree creates a commit from a tree and message, optionally with parents. -func (repo *TestRepo) CommitTree(tb testing.TB, tree objectid.ObjectID, message string, parents ...objectid.ObjectID) objectid.ObjectID { +func (testRepo *TestRepo) CommitTree(tb testing.TB, tree objectid.ObjectID, message string, parents ...objectid.ObjectID) objectid.ObjectID { tb.Helper() args := []string{"commit-tree", tree.String()} for _, p := range parents { args = append(args, "-p", p.String()) } args = append(args, "-m", message) - hex := repo.Run(tb, args...) - id, err := objectid.ParseHex(repo.algo, hex) + hex := testRepo.Run(tb, args...) + id, err := objectid.ParseHex(testRepo.algo, hex) if err != nil { tb.Fatalf("parse commit-tree output %q: %v", hex, err) } -- cgit v1.3.1-10-gc9f91