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/refname.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/testgit/refname.go') diff --git a/internal/testgit/refname.go b/internal/testgit/refname.go index c3d0f9b7..7f547d91 100644 --- a/internal/testgit/refname.go +++ b/internal/testgit/refname.go @@ -14,7 +14,7 @@ type RefFormatOptions struct { func (repo *Repo) CheckRefFormat(tb testing.TB, name string, opts RefFormatOptions) error { tb.Helper() - _, err := repo.Run(tb, nil, "git", refFormatArgs("check-ref-format", name, opts)...) + _, err := repo.run(tb, nil, "git", refFormatArgs("check-ref-format", name, opts)...) return err } @@ -22,7 +22,7 @@ func (repo *Repo) CheckRefFormat(tb testing.TB, name string, opts RefFormatOptio func (repo *Repo) NormalizeRefFormat(tb testing.TB, name string, opts RefFormatOptions) (string, error) { tb.Helper() - out, err := repo.Run(tb, nil, "git", refFormatArgs("check-ref-format", name, opts, "--normalize")...) + out, err := repo.run(tb, nil, "git", refFormatArgs("check-ref-format", name, opts, "--normalize")...) if err != nil { return "", err } @@ -33,7 +33,7 @@ func (repo *Repo) NormalizeRefFormat(tb testing.TB, name string, opts RefFormatO func (repo *Repo) CheckBranchName(tb testing.TB, name string) (string, error) { tb.Helper() - out, err := repo.Run(tb, nil, "git", "check-ref-format", "--branch", name) + out, err := repo.run(tb, nil, "git", "check-ref-format", "--branch", name) if err != nil { return "", err } @@ -53,7 +53,7 @@ func (repo *Repo) CheckTagName(tb testing.TB, name string) (string, error) { return "", exec.ErrNotFound } - _, err := repo.Run(tb, nil, "git", "check-ref-format", "refs/tags/"+name) + _, err := repo.run(tb, nil, "git", "check-ref-format", "refs/tags/"+name) if err != nil { return "", err } -- cgit v1.3.1-10-gc9f91