From c1ec21d89caa0cdb0aefd6f6b8f95648418a3543 Mon Sep 17 00:00:00 2001 From: Sanskar Jaiswal Date: Tue, 4 Oct 2022 20:20:57 +0530 Subject: libgit2 v1.5.0 #major (#929) Update libgit2 to v1.5.0. Replace `SmartProxyOptions()` with `SmartRemoteConnectOptions()`. Fixes: https://github.com/libgit2/git2go/issues/899 Signed-off-by: Sanskar Jaiswal Co-authored-by: lhchavez --- http.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'http.go') diff --git a/http.go b/http.go index cb4c7d0..ce6b8fc 100644 --- a/http.go +++ b/http.go @@ -38,17 +38,17 @@ func registerManagedHTTP() error { func httpSmartSubtransportFactory(remote *Remote, transport *Transport) (SmartSubtransport, error) { var proxyFn func(*http.Request) (*url.URL, error) - proxyOpts, err := transport.SmartProxyOptions() + remoteConnectOpts, err := transport.SmartRemoteConnectOptions() if err != nil { return nil, err } - switch proxyOpts.Type { + switch remoteConnectOpts.ProxyOptions.Type { case ProxyTypeNone: proxyFn = nil case ProxyTypeAuto: proxyFn = http.ProxyFromEnvironment case ProxyTypeSpecified: - parsedUrl, err := url.Parse(proxyOpts.Url) + parsedUrl, err := url.Parse(remoteConnectOpts.ProxyOptions.Url) if err != nil { return nil, err } -- cgit v1.2.3