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_hash_object.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/testgit/repo_hash_object.go') diff --git a/internal/testgit/repo_hash_object.go b/internal/testgit/repo_hash_object.go index b21e1231..10a05381 100644 --- a/internal/testgit/repo_hash_object.go +++ b/internal/testgit/repo_hash_object.go @@ -7,10 +7,10 @@ import ( ) // HashObject hashes and writes an object and returns its object ID. -func (repo *TestRepo) HashObject(tb testing.TB, objType string, body []byte) objectid.ObjectID { +func (testRepo *TestRepo) HashObject(tb testing.TB, objType string, body []byte) objectid.ObjectID { tb.Helper() - hex := repo.RunInput(tb, body, "hash-object", "-t", objType, "-w", "--stdin") - id, err := objectid.ParseHex(repo.algo, hex) + hex := testRepo.RunInput(tb, body, "hash-object", "-t", objType, "-w", "--stdin") + id, err := objectid.ParseHex(testRepo.algo, hex) if err != nil { tb.Fatalf("parse git hash-object output %q: %v", hex, err) } -- cgit v1.3.1-10-gc9f91