-
Notifications
You must be signed in to change notification settings - Fork 34
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
libgit2 not recognizing proxy variable #210
Comments
I'm not quite sure what the status of the proxy support is in libgit2. Can you review this thread if there are any hints? #122 |
I've reviewed that thread many times, but unfortunately haven't found a solution. It looks like I'll just have to avoid using gert and instead run git commands via CLI. |
Sorry about that. It is difficult for me to test this because I don't have access to such a proxied windows corp network. I think there is a setting to pick up the proxy server, but that will still require you to provide crendentials somehow. Does your proxy server itself also require authentication? |
No, it just uses the server address and port number AFAIK. I think Git is using the HTTP_PROXY environment variable somehow; not sure why libgit2 is not. |
@jeroen http.https://github.com.proxy=http://<IP_ADDRESS>:<PORT>
http.https://github.com.proxysslcainfo=/etc/ssl/certs/local-ca.crt Does Note. I am using : > gert::libgit2_config()
$version
[1] '1.4.2' |
A few findings, that hopefully help to resolve the libgit2 issue.
However, despite https://github.com/libgit2/libgit2/blob/585210ab210800657ca32f843d3dc8e770c2a4d0/src/libgit2/remote.c#L1135 |
I cannot connect to GitHub using https protocol. I'm behind a corporate firewall but have curl proxy environment variables set with allow connection via CLI. Any attempt with gert fails unless ssh protocol is used.
All required credentials seem to be set up correctly (PAT being stored and pulled from OS credential manager on Windows).
I've tried adding my proxy to git config under both http and https but with no success.
I understand libgit2 is used with gert but it appears that it's the only thing not recognizing the proxy config. Since it isn't packaged though I don't know how to pass the proxy settings to it for it to use. I've tried looking at similar issues online but haven't found a solution.
Created on 2024-02-06 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: