From e083d4dc1f455bd57b2f9d473fb44f5ee5ccbbe3 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 6 Jun 2026 16:31:02 +0000 Subject: internal/testgit: hash-object and command --- internal/testgit/repo.go | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'internal/testgit/repo.go') 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 -} -- cgit v1.3.1-10-gc9f91