aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Chagrass <nchagrass@users.noreply.github.com>2021-05-24 21:07:59 +0100
committerGitHub <noreply@github.com>2021-05-24 22:07:59 +0200
commitdb4233e9e8b3b2e37259ed4e7952faaed16218b9 (patch)
tree2a29ea6945c84c63ad35d15d29736efb8c6b75df
parent720c192831a890d0a36b4c6720b60411fa4a0159 (diff)
downloadgo-git-db4233e9e8b3b2e37259ed4e7952faaed16218b9.tar.gz
remote: patch default timeout for `List` (#321)v5.4.1
It looks a test value was shipped breaking a lot of the usage of the library.
-rw-r--r--remote.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/remote.go b/remote.go
index ca82a3d..4a06106 100644
--- a/remote.go
+++ b/remote.go
@@ -1085,7 +1085,7 @@ func (r *Remote) ListContext(ctx context.Context, o *ListOptions) (rfs []*plumbi
}
func (r *Remote) List(o *ListOptions) (rfs []*plumbing.Reference, err error) {
- ctx, cancel := context.WithTimeout(context.Background(), 600*time.Millisecond)
+ ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()
return r.ListContext(ctx, o)
}