summaryrefslogtreecommitdiff
path: root/transport.go
diff options
context:
space:
mode:
authorSanskar Jaiswal <[email protected]>2022-10-04 20:20:57 +0530
committerGitHub <[email protected]>2022-10-04 07:50:57 -0700
commitc1ec21d89caa0cdb0aefd6f6b8f95648418a3543 (patch)
tree33d4bb4b521a5c5f4502d92db478b0786953363b /transport.go
parent9db5de109c166aa802b85cfae2dced3c4728a00d (diff)
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 <[email protected]> Co-authored-by: lhchavez <[email protected]>
Diffstat (limited to 'transport.go')
-rw-r--r--transport.go10
1 files changed, 5 insertions, 5 deletions
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.