Currently GitProxyOptions.Type is set to GitProxyType.none and it is not possible to use libgit2sharp through a proxy. By setting GitProxyOptions.Type to GitProxyType.Auto git config settings for http.proxy and https.proxy work as expected in libgit2sharp.
Fix for #1429.
Currently
GitProxyOptions.Type
is set toGitProxyType.none
and it is not possible to use libgit2sharp through a proxy. By settingGitProxyOptions.Type
toGitProxyType.Auto
git config settings forhttp.proxy
andhttps.proxy
work as expected in libgit2sharp.PR https://github.com/libgit2/libgit2sharp/pull/1689 also attempts to address this, but is still open. However, it is not legal to have a field initializer in a struct.
PR https://github.com/libgit2/libgit2sharp/pull/1708 did a nice job of fixing this issue, but it was closed by the author and not merged.
It would be really nice to have this feature in libgit2sharp.