diff options
author | Andrew Pollock <apollock@google.com> | 2023-05-02 21:05:24 +1000 |
---|---|---|
committer | Andrew Pollock <apollock@google.com> | 2023-05-12 10:32:08 +1000 |
commit | f47bb2d633347913d5575a42e25872c38569a4a3 (patch) | |
tree | 49d2a6929657cbacac898619a4c3b31e46a26119 /options.go | |
parent | dc2b346ed149080199d578f0190f3ac1156480c2 (diff) | |
download | go-git-f47bb2d633347913d5575a42e25872c38569a4a3.tar.gz |
git: remote, add support for a configurable timeout.
The previous hard-coded 10 second value is too short for listing large
repositories like https://gitlab.com/gitlab-org/gitlab
Return an error on nonsensical subzero timeout values
Diffstat (limited to 'options.go')
-rw-r--r-- | options.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -640,6 +640,8 @@ type ListOptions struct { PeelingOption PeelingOption // ProxyOptions provides info required for connecting to a proxy. ProxyOptions transport.ProxyOptions + // Timeout specifies the timeout in seconds for list operations + Timeout int } // PeelingOption represents the different ways to handle peeled references. |