Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set GitProxyOptions type to default to auto #2043

Closed
wants to merge 2 commits into from

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.

None yet

2 participants