FetchOptions: add ability to specify ProxyOptions #623

Merged
lollipopman merged 3 commits from clone-proxy-opts into master 2020-07-10 15:00:53 -05:00

3 Commits

Author SHA1 Message Date
Jesse Hathaway dea861eb42 populateFetchOptions: remove redundant initialization
This is already preformed by git_fetch_init_options()
2020-07-10 19:39:34 +00:00
Jesse Hathaway db78e55d45 FetchOptions: don't embed the ProxyOptions
Rather than embeding the ProxyOptions struct add a member to the struct.
Also use a value rather than a pointer, so that the zero value of
FetchOptions is well defined.
2020-07-10 19:39:12 +00:00
Jesse Hathaway d5229e6af8 FetchOptions: add ability to specify ProxyOptions
Prior to this change you could not specifiy proxy options on the
FetchOptions struct, which made it impossible to specify a proxy for an
initial clone. This change adds the ProxyOptions to the FetchOptions
struct so you can go through a proxy when cloning.
2020-07-10 15:59:09 +00:00