r-lib / gert

Simple git client for R
https://docs.ropensci.org/gert/
Other
146 stars 31 forks source link

Error in `libgit2::git_clone` can't clone #228

Open TanguyBarthelemy opened 1 month ago

TanguyBarthelemy commented 1 month ago

Hi,

I try to use {gert} to clone a repository.

But I encountered an issue:

> library("gert")
Linking to libgit2 v1.7.1, ssh support: YES
Global config: ...
System config: ...
Default user: ...
> git_dir <- file.path(tempdir(), 'antiword')
> git_clone('https://github.com/ropensci/antiword', git_dir)
Error in libgit2::git_clone : failed to connect to github.com: 

However, when I try to clone with the system() function, I get no error and it works:

> system("git clone https://github.com/ropensci/antiword")
Cloning into 'antiword'...
[1] 0

Do I have to configure something additionally?

Thank you

jeroen commented 1 month ago

I am guessing you are behind proxy servers?

TanguyBarthelemy commented 1 month ago

Yes, but it's configured in my env var http_proxy and https_proxy.

jeroen commented 1 month ago

Yeah that doesn't work (yet), see some of the other issues. I'll give that another try soon, I think libgit2 made some progress since the last time I tried.

TanguyBarthelemy commented 1 month ago

Okay thanks. Now I see all the other issues (with the same proxy issue..) Forgive me for raising a point that has already been made enough times