diff options
| author | 2026-06-07 09:35:38 +0000 | |
|---|---|---|
| committer | 2026-06-07 09:35:38 +0000 | |
| commit | 37f86979eefddb653e90b6af700b976dd3463417 (patch) | |
| tree | b01b30f04ace10eb198284094ece535e18ef74f4 /internal/testgit/object.go | |
| parent | REFACTOR: object/commit is done (diff) | |
| signature | No signature | |
internal/testgit: Unexport Run and Command
Diffstat (limited to 'internal/testgit/object.go')
| -rw-r--r-- | internal/testgit/object.go | 4 |
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) } |
