r-lib / devtools

Tools to make an R developer's life easier
https://devtools.r-lib.org
Other
2.39k stars 758 forks source link

install_git Fails to install repo from internal gitolite library #819

Closed stanekam closed 9 years ago

stanekam commented 9 years ago

Not certain what the issue is here. install_git worked fine until the move to the git2r library.

My call:

devtools::install_git("gitolite@code.company.internal:analytics/pkg")

The error:

Error in git2r::clone(x$url, bundle, progress = FALSE) :
Error in 'git2r_clone': Unsupported URL protocol

Not certain what the URL protocol issue is. May be an SSH issue?

hadley commented 9 years ago

What's your OS?

stanekam commented 9 years ago

Mac OS X 10.9.5

dcangst commented 9 years ago

I have the same problem with Mac OS X 10.10.3 using an internal GitLab 7.6.2 repository.

sessionInfo():

R version 3.2.0 (2015-04-16)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.10.3 (Yosemite)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] git2r_0.10.1        devtools_1.8.0.9000

loaded via a namespace (and not attached):
[1] memoise_0.2.1 digest_0.6.8 
hadley commented 9 years ago

See https://github.com/ropensci/git2r/issues/131

c97sr commented 8 years ago

Hi there, I'm getting a similar issue on ubuntu 14.04 with ssh installed. I had installed devtools without ther ssh2 dev library, but I fixed that and reinstalled git2r and then devtools. git2r now reports as happy with ssh, but I still can't get devtools to run install_git .

install_git("c97sr/idd") Downloading git repo c97sr/idd Error in git2r::clone(x$url, bundle, credentials = x$credentials, progress = FALSE) : Error in 'git2r_clone': Unsupported URL protocol libgit2_features() $threads [1] FALSE

$https [1] TRUE

$ssh [1] TRUE

jimhester commented 8 years ago

@c97sr Are you sure you want to use install_git() and not install_github("c97sr/idd")?

c97sr commented 8 years ago

Yes - that makes sense. Thanks for the quick answer.

On 26 July 2016 at 13:14, Jim Hester notifications@github.com wrote:

@c97sr https://github.com/c97sr Are you sure you want to use install_git() and not install_github("c97sr/idd)?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hadley/devtools/issues/819#issuecomment-235249788, or mute the thread https://github.com/notifications/unsubscribe-auth/ADGGGQDFVZOl3aJWta3zbbeKVwO-pp4Jks5qZfoqgaJpZM4Eqrdb .

Professor of Infectious Disease Dynamics MRC Centre for Outbreak Analysis and Modelling Department of Infectious Disease Epidemiology School of Public Health, Imperial College London +44 207 594 2452 | goo.gl/m4KfhR | @SRileyIDD

quantitative-technologies commented 6 years ago

@jimhester I need install_git() because of this: "Attempting to install from a source repository that uses submodules raises a warning. Because the zipped sources provided by GitHub do not include submodules, this may lead to unexpected behaviour or compilation failure in source packages. In this case, cloning the repository manually using install_git with args="--recursive" may yield better results."

However install_git() also gives me the error: Error in 'git2r_clone': Unsupported URL protocol

lock[bot] commented 5 years ago

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/