summaryrefslogtreecommitdiff
path: root/remote.go
diff options
context:
space:
mode:
authorlhchavez <[email protected]>2021-09-05 16:39:07 -0700
committerGitHub <[email protected]>2021-09-05 16:39:07 -0700
commitb983e1daebf528443e2a3954cd595fa3664ec93f (patch)
tree51ed7f7c359c9548dad7afa1a445749380d59f66 /remote.go
parentf1fa96c7b7f548389c7560d3a1a0bce83be56c9f (diff)
Add support for managed HTTP/S transports (#810)
This change uses the newly-exposed Transport interface to use Go's implementation of http.Client instead of httpclient via libgit2.
Diffstat (limited to 'remote.go')
-rw-r--r--remote.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/remote.go b/remote.go
index fb70f55..3a435d1 100644
--- a/remote.go
+++ b/remote.go
@@ -168,6 +168,13 @@ type ProxyOptions struct {
Url string
}
+func proxyOptionsFromC(copts *C.git_proxy_options) *ProxyOptions {
+ return &ProxyOptions{
+ Type: ProxyType(copts._type),
+ Url: C.GoString(copts.url),
+ }
+}
+
type Remote struct {
doNotCompare
ptr *C.git_remote