aboutsummaryrefslogtreecommitdiff
path: root/internal/testgit/repo_rev_parse.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-02-20 22:59:14 +0800
committerGravatar Runxi Yu2026-02-20 22:59:14 +0800
commitd88c8e20aebd9408df0306e97dffc2896950342d (patch)
tree8e137f37fdd9ea673bd622a2b9c9873cd89278fb /internal/testgit/repo_rev_parse.go
parentobjectid: Use _test package for tests (diff)
signatureNo signature
*: Replace repo with testRepo
Diffstat (limited to 'internal/testgit/repo_rev_parse.go')
-rw-r--r--internal/testgit/repo_rev_parse.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/testgit/repo_rev_parse.go b/internal/testgit/repo_rev_parse.go
index d545f97b..bebdfa8e 100644
--- a/internal/testgit/repo_rev_parse.go
+++ b/internal/testgit/repo_rev_parse.go
@@ -7,10 +7,10 @@ import (
)
// RevParse resolves rev expressions to object IDs.
-func (repo *TestRepo) RevParse(tb testing.TB, spec string) objectid.ObjectID {
+func (testRepo *TestRepo) RevParse(tb testing.TB, spec string) objectid.ObjectID {
tb.Helper()
- hex := repo.Run(tb, "rev-parse", spec)
- id, err := objectid.ParseHex(repo.algo, hex)
+ hex := testRepo.Run(tb, "rev-parse", spec)
+ id, err := objectid.ParseHex(testRepo.algo, hex)
if err != nil {
tb.Fatalf("parse rev-parse output %q: %v", hex, err)
}