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

Error in 'git2r_clone' can't clone #469

Open
TanguyBarthelemy opened this issue Jul 12, 2024 · 0 comments
Open

Error in 'git2r_clone' can't clone #469

TanguyBarthelemy opened this issue Jul 12, 2024 · 0 comments

Comments

@TanguyBarthelemy
Copy link

Hi,

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

But I encountered an issue:

> library("git2r")
> git_dir <- file.path(tempdir(), "antiword")
> clone("https://github.com/ropensci/antiword", git_dir)
cloning into 'C:\Users\UTZK0M\AppData\Local\Temp\RtmpK6C6dF/antiword'...
Error in clone("https://github.com/ropensci/antiword", git_dir) : 
  Error in 'git2r_clone': failed to send request: Impossible d’établir une connexion avec le serveur

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

@TanguyBarthelemy TanguyBarthelemy changed the title Error in 'git2r_clone' can't clone Error in 'git2r_clone' can't clone Jul 12, 2024
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

No branches or pull requests

1 participant