Skip to content

Conversation

@jones-gareth
Copy link

Fix for #1429.

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.

PR #1689 also attempts to address this, but is still open. However, it is not legal to have a field initializer in a struct.

PR #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.

@jones-gareth
Copy link
Author

I've created a NUGET package from this PR.

@bording
Copy link
Member

bording commented Dec 3, 2023

Thanks for the PR. I've incorporated setting the proxy type to auto by default in my comprehensive PR that adds proxy support, #2065.

@bording bording closed this Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants