aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/transport/file/client.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2021-05-02 23:36:12 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2021-05-02 23:36:12 +0200
commit67af9d7223b0cc643025d958c592291f7475ac75 (patch)
treea8d14d0e88fd57ae84c2614d7c2fb9c6527438a5 /plumbing/transport/file/client.go
parentc69d5331743e49d3672897cf1c552e5e123d4509 (diff)
downloadgo-git-67af9d7223b0cc643025d958c592291f7475ac75.tar.gz
utils: ioutil, Pipe implementatio
Diffstat (limited to 'plumbing/transport/file/client.go')
-rw-r--r--plumbing/transport/file/client.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/plumbing/transport/file/client.go b/plumbing/transport/file/client.go
index 38714e2..6f0a380 100644
--- a/plumbing/transport/file/client.go
+++ b/plumbing/transport/file/client.go
@@ -11,6 +11,7 @@ import (
"github.com/go-git/go-git/v5/plumbing/transport"
"github.com/go-git/go-git/v5/plumbing/transport/internal/common"
+ "github.com/go-git/go-git/v5/utils/ioutil"
"golang.org/x/sys/execabs"
)
@@ -111,7 +112,7 @@ func (c *command) Start() error {
func (c *command) StderrPipe() (io.Reader, error) {
// Pipe returned by Command.StderrPipe has a race with Read + Command.Wait.
// We use an io.Pipe and close it after the command finishes.
- r, w := io.Pipe()
+ r, w := ioutil.Pipe()
c.cmd.Stderr = w
c.stderrCloser = r
return r, nil