aboutsummaryrefslogtreecommitdiff
path: root/internal/testgit/repo.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-06-06 16:31:02 +0000
committerGravatar Runxi Yu2026-06-06 16:31:02 +0000
commite083d4dc1f455bd57b2f9d473fb44f5ee5ccbbe3 (patch)
tree65227398b7db087a7aff211daa4000715bda399c /internal/testgit/repo.go
parenttestgit sucks (diff)
signatureNo signature
internal/testgit: hash-object and command
Diffstat (limited to 'internal/testgit/repo.go')
-rw-r--r--internal/testgit/repo.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/internal/testgit/repo.go b/internal/testgit/repo.go
index f28ed0cb..81202344 100644
--- a/internal/testgit/repo.go
+++ b/internal/testgit/repo.go
@@ -2,7 +2,6 @@ package testgit
import (
"os"
- "os/exec"
"testing"
"lindenii.org/go/furgit/object/id"
@@ -42,18 +41,3 @@ func NewRepo(tb testing.TB, opts RepoOptions) (*Repo, error) {
func (repo *Repo) ObjectFormat() id.ObjectFormat {
return repo.objectFormat
}
-
-func (repo *Repo) Command(
- tb testing.TB,
- command string,
- args ...string,
-) *exec.Cmd {
- tb.Helper()
-
- //nolint:noctx
- cmd := exec.Command(command, args...)
- cmd.Dir = repo.path
- cmd.Env = repo.env
-
- return cmd
-}