From 37f86979eefddb653e90b6af700b976dd3463417 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 7 Jun 2026 09:35:38 +0000 Subject: internal/testgit: Unexport Run and Command --- internal/testgit/object.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/testgit/object.go') 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) } -- cgit v1.3.1-10-gc9f91