diff options
author | Nicolas Chagrass <nchagrass@users.noreply.github.com> | 2021-05-24 21:07:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-24 22:07:59 +0200 |
commit | db4233e9e8b3b2e37259ed4e7952faaed16218b9 (patch) | |
tree | 2a29ea6945c84c63ad35d15d29736efb8c6b75df /remote.go | |
parent | 720c192831a890d0a36b4c6720b60411fa4a0159 (diff) | |
download | go-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.
Diffstat (limited to 'remote.go')
-rw-r--r-- | remote.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) } |