aboutsummaryrefslogtreecommitdiff
path: root/testutil_test.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-02-20 12:41:18 +0800
committerGravatar Runxi Yu2026-02-20 12:57:31 +0800
commite0e56e63defc1cb9cc14081c62bb268de7e15dd7 (patch)
tree9698d7daecb4775f500ac937646814a7a25bbe04 /testutil_test.go
parentRevert "packed: Factor out packWriteObjects and clean up" (diff)
signatureNo signature
Revert "test: Make gitCmd accept an stdin []byte"
This reverts commit f762271dbfc121eaac7eb59c0beb01620a09118f.
Diffstat (limited to 'testutil_test.go')
-rw-r--r--testutil_test.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/testutil_test.go b/testutil_test.go
index 4ccfc840..bca6db14 100644
--- a/testutil_test.go
+++ b/testutil_test.go
@@ -17,13 +17,10 @@ func setupWorkDir(t *testing.T) (string, func()) {
return workDir, func() { _ = os.RemoveAll(workDir) }
}
-func gitCmd(t *testing.T, dir string, stdin []byte, args ...string) string {
+func gitCmd(t *testing.T, dir string, args ...string) string {
t.Helper()
cmd := exec.Command("git", args...)
cmd.Dir = dir
- if stdin != nil {
- cmd.Stdin = bytes.NewReader(stdin)
- }
cmd.Env = append(os.Environ(),
"GIT_CONFIG_GLOBAL=/dev/null",
"GIT_CONFIG_SYSTEM=/dev/null",