MCPcopy Create free account
hub / github.com/libgit2/git2go / SmartRemoteConnectOptions

Method SmartRemoteConnectOptions

transport.go:88–98  ·  view source on GitHub ↗

SmartRemoteConnectOptions gets a copy of the proxy options for this transport.

()

Source from the content-addressed store, hash-verified

86
87// SmartRemoteConnectOptions gets a copy of the proxy options for this transport.
88func (t *Transport) SmartRemoteConnectOptions() (*RemoteConnectOptions, error) {
89 runtime.LockOSThread()
90 defer runtime.UnlockOSThread()
91
92 var copts C.git_remote_connect_options
93 if ret := C.git_transport_remote_connect_options(&copts, t.ptr); ret < 0 {
94 return nil, MakeGitError(ret)
95 }
96
97 return remoteConnectOptionsFromC(&copts), nil
98}
99
100// SmartCredentials calls the credentials callback for this transport.
101func (t *Transport) SmartCredentials(user string, methods CredentialType) (*Credential, error) {

Callers 1

Calls 2

MakeGitErrorFunction · 0.85

Tested by

no test coverage detected