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 --- transport.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'transport.go') diff --git a/transport.go b/transport.go index 23514b4..bb9f2b3 100644 --- a/transport.go +++ b/transport.go @@ -84,17 +84,17 @@ type Transport struct { ptr *C.git_transport } -// SmartProxyOptions gets a copy of the proxy options for this transport. -func (t *Transport) SmartProxyOptions() (*ProxyOptions, error) { +// SmartRemoteConnectOptions gets a copy of the proxy options for this transport. +func (t *Transport) SmartRemoteConnectOptions() (*RemoteConnectOptions, error) { runtime.LockOSThread() defer runtime.UnlockOSThread() - var cpopts C.git_proxy_options - if ret := C.git_transport_smart_proxy_options(&cpopts, t.ptr); ret < 0 { + var copts C.git_remote_connect_options + if ret := C.git_transport_remote_connect_options(&copts, t.ptr); ret < 0 { return nil, MakeGitError(ret) } - return proxyOptionsFromC(&cpopts), nil + return remoteConnectOptionsFromC(&copts), nil } // SmartCredentials calls the credentials callback for this transport. -- cgit v1.2.3