diff options
| author | 2026-02-20 22:59:14 +0800 | |
|---|---|---|
| committer | 2026-02-20 22:59:14 +0800 | |
| commit | d88c8e20aebd9408df0306e97dffc2896950342d (patch) | |
| tree | 8e137f37fdd9ea673bd622a2b9c9873cd89278fb /internal/testgit/repo_rev_parse.go | |
| parent | objectid: Use _test package for tests (diff) | |
| signature | No signature | |
*: Replace repo with testRepo
Diffstat (limited to 'internal/testgit/repo_rev_parse.go')
| -rw-r--r-- | internal/testgit/repo_rev_parse.go | 6 |
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) } |
