aboutsummaryrefslogtreecommitdiff
path: root/internal/testgit/object.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-06-07 09:35:38 +0000
committerGravatar Runxi Yu2026-06-07 09:35:38 +0000
commit37f86979eefddb653e90b6af700b976dd3463417 (patch)
treeb01b30f04ace10eb198284094ece535e18ef74f4 /internal/testgit/object.go
parentREFACTOR: object/commit is done (diff)
signatureNo signature
internal/testgit: Unexport Run and Command
Diffstat (limited to 'internal/testgit/object.go')
-rw-r--r--internal/testgit/object.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/testgit/object.go b/internal/testgit/object.go
index 3d6f476c..a01a6ff8 100644
--- a/internal/testgit/object.go
+++ b/internal/testgit/object.go
@@ -15,7 +15,7 @@ import (
func (repo *Repo) HashObject(tb testing.TB, ty typ.Type, body io.Reader) (id.ObjectID, error) {
tb.Helper()
- stdout, err := repo.Run(tb, body, "git", "hash-object", "-t", ty.Name(), "-w", "--stdin", "--literally")
+ stdout, err := repo.run(tb, body, "git", "hash-object", "-t", ty.Name(), "-w", "--stdin", "--literally")
if err != nil {
return id.ObjectID{}, fmt.Errorf("hash-object: %w", err)
}
@@ -33,7 +33,7 @@ func (repo *Repo) HashObject(tb testing.TB, ty typ.Type, body io.Reader) (id.Obj
func (repo *Repo) CatFile(tb testing.TB, ty typ.Type, oid id.ObjectID) ([]byte, error) {
tb.Helper()
- stdout, err := repo.Run(tb, nil, "git", "cat-file", ty.Name(), "--end-of-options", oid.String())
+ stdout, err := repo.run(tb, nil, "git", "cat-file", ty.Name(), "--end-of-options", oid.String())
if err != nil {
return nil, fmt.Errorf("cat-file: %w", err)
}