aboutsummaryrefslogtreecommitdiff
path: root/internal/testgit/repo_hash_object.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/testgit/repo_hash_object.go')
-rw-r--r--internal/testgit/repo_hash_object.go6
1 files changed, 3 insertions, 3 deletions
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)
}