aboutsummaryrefslogtreecommitdiffstats
path: root/remote.go
diff options
context:
space:
mode:
authorAndrew Suffield <asuffield@gmail.com>2021-03-26 16:03:49 +0000
committerGitHub <noreply@github.com>2021-03-26 17:03:49 +0100
commite5bbc4d10904554dbc8fd5afd06f66814f7b173e (patch)
tree6a1508b51ede537c75896ba6650a8f5fb0ad09f8 /remote.go
parent1f328388192915476c68e5e0c8c1c818fd50fc6b (diff)
downloadgo-git-e5bbc4d10904554dbc8fd5afd06f66814f7b173e.tar.gz
plumbing: wire up contexts for Transport.AdvertisedReferences (#246)
* plumbing: wire up contexts for Transport.AdvertisedReferences * add more tests for context wiring
Diffstat (limited to 'remote.go')
-rw-r--r--remote.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/remote.go b/remote.go
index dde0445..85c28ee 100644
--- a/remote.go
+++ b/remote.go
@@ -109,7 +109,7 @@ func (r *Remote) PushContext(ctx context.Context, o *PushOptions) (err error) {
defer ioutil.CheckClose(s, &err)
- ar, err := s.AdvertisedReferences()
+ ar, err := s.AdvertisedReferencesContext(ctx)
if err != nil {
return err
}
@@ -320,7 +320,7 @@ func (r *Remote) fetch(ctx context.Context, o *FetchOptions) (sto storer.Referen
defer ioutil.CheckClose(s, &err)
- ar, err := s.AdvertisedReferences()
+ ar, err := s.AdvertisedReferencesContext(ctx)
if err != nil {
return nil, err
}
@@ -1038,7 +1038,7 @@ func (r *Remote) List(o *ListOptions) (rfs []*plumbing.Reference, err error) {
defer ioutil.CheckClose(s, &err)
- ar, err := s.AdvertisedReferences()
+ ar, err := s.AdvertisedReferencesContext(context.TODO())
if err != nil {
return nil, err
}