From db4233e9e8b3b2e37259ed4e7952faaed16218b9 Mon Sep 17 00:00:00 2001 From: Nicolas Chagrass Date: Mon, 24 May 2021 21:07:59 +0100 Subject: [PATCH] remote: patch default timeout for `List` (#321) It looks a test value was shipped breaking a lot of the usage of the library. --- remote.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remote.go b/remote.go index ca82a3d1a..4a06106c5 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) }