aboutsummaryrefslogtreecommitdiff
path: root/internal/testgit/refname.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/refname.go
parentREFACTOR: object/commit is done (diff)
signatureNo signature
internal/testgit: Unexport Run and Command
Diffstat (limited to 'internal/testgit/refname.go')
-rw-r--r--internal/testgit/refname.go8
1 files changed, 4 insertions, 4 deletions
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
}