Skip to content

libgit2 not recognizing proxy variable #210

Description

@cb12991

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.

gert::git_clone("https://github.com/r-lib/gert")
#> Error in libgit2::git_clone: failed to connect to github.com:

All required credentials seem to be set up correctly (PAT being stored and pulled from OS credential manager on Windows).

gitcreds::gitcreds_get()
#> <gitcreds>
#>   protocol: https
#>   host    : github.com
#>   username: PersonalAccessToken
#>   password: <-- hidden -->

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions