Skip to content

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

@TanguyBarthelemy

Description

@TanguyBarthelemy

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

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