aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-07-25 14:34:22 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2017-07-25 14:34:22 +0200
commitdb5fa522f36207684ec0d67b98cac6313f0259b6 (patch)
tree8dd8821a490313c23eee529808a13026616dbac8
parentaf3f5e2b9139674b49c5caf0bc06e93cbc426727 (diff)
downloadgo-git-db5fa522f36207684ec0d67b98cac6313f0259b6.tar.gz
*: context.TODO()
-rw-r--r--remote.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/remote.go b/remote.go
index fa984cf..e29a00a 100644
--- a/remote.go
+++ b/remote.go
@@ -1,6 +1,7 @@
package git
import (
+ "context"
"errors"
"fmt"
"io"
@@ -243,7 +244,7 @@ func newClient(url string) (transport.Transport, transport.Endpoint, error) {
func (r *Remote) fetchPack(o *FetchOptions, s transport.UploadPackSession,
req *packp.UploadPackRequest) (err error) {
- reader, err := s.UploadPack(req)
+ reader, err := s.UploadPack(context.TODO(), req)
if err != nil {
return err
}
@@ -686,7 +687,7 @@ func pushHashes(sess transport.ReceivePackSession, sto storer.EncodedObjectStore
done <- wr.Close()
}()
- rs, err := sess.ReceivePack(req)
+ rs, err := sess.ReceivePack(context.TODO(), req)
if err != nil {
return nil, err
}