aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/transport/server/server.go
diff options
context:
space:
mode:
authorAyman Bagabas <ayman.bagabas@gmail.com>2023-11-13 17:53:46 -0500
committerAyman Bagabas <ayman.bagabas@gmail.com>2023-11-13 18:02:20 -0500
commita28a4ac965f714e7506ba26212556fd3d9817712 (patch)
tree079a0e7944ec8280aa2d157b9fd6996d9ef941b9 /plumbing/transport/server/server.go
parenta9509b0a52f116ea2969d51890a4265d98d50dcb (diff)
downloadgo-git-a28a4ac965f714e7506ba26212556fd3d9817712.tar.gz
utils: remove ioutil.Pipe and use std library io.Pipe
ioutil.Pipe literally calls io.Pipe.
Diffstat (limited to 'plumbing/transport/server/server.go')
-rw-r--r--plumbing/transport/server/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/transport/server/server.go b/plumbing/transport/server/server.go
index 11fa0c8..cf5d6f4 100644
--- a/plumbing/transport/server/server.go
+++ b/plumbing/transport/server/server.go
@@ -166,7 +166,7 @@ func (s *upSession) UploadPack(ctx context.Context, req *packp.UploadPackRequest
return nil, err
}
- pr, pw := ioutil.Pipe()
+ pr, pw := io.Pipe()
e := packfile.NewEncoder(pw, s.storer, false)
go func() {
// TODO: plumb through a pack window.