-
Notifications
You must be signed in to change notification settings - Fork 153
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
remotes::install_git fails with corporate https server, but command line git and pak::pkg_install work fine #821
Comments
I don't know. You can try to debug this and see the actual output from git. |
debugging leads to result <- in_dir(path, system(full, intern = TRUE, ignore.stderr = quiet))
## Warning message:
## In system(full, intern = TRUE, ignore.stderr = quiet) :
## running command '"C:\PROGRA~1\Git\cmd\git.exe" ls-remote https://my-corporate-server/git/DataMgmt/my.package.git ' had status 128
result
## character(0)
## attr(,"status")
## [1] 128
# taking a closer look at the function call system(full, intern = TRUE, ignore.stderr = quiet)
full
## [1] "\"C:\\PROGRA~1\\Git\\cmd\\git.exe\" ls-remote https://my-corporate-server/git/DataMgmt/my.package.git " Which works just fine when I paste it into a command prompt. |
OK I should have toggled that result <- in_dir(path, system(full, intern = TRUE, ignore.stderr = FALSE)
fatal: unable to access 'https://my-corporate-server/git/DataMgmt/my.package.git/': SSL certificate problem: self-signed certificate in certificate chain
Warning message:
In system(full, intern = TRUE, ignore.stderr = FALSE) :
running command '"C:\PROGRA~1\Git\cmd\git.exe" ls-remote https://my-corporate-sever/git/DataMgmt/my.package.git ' had status 128 But
So why isn't |
I would think not, but I don't know, sorry. Try calling |
ok, so it appears that the I can reproduce this by calling shell.exec("cmd") from the debug environment of the
|
This seems to have mysteriously resolved itself, git is now finding the user configuration. |
I have a secure (HTTPS) corporate Gitea server with R package repositories. We have our own security certificates, so I have configured git to use
schannel
for the SSL backend. I am unable to install packages viaremotes::install_git()
:However,
git ls-remote
(which is apparently throwing error 128) works fine on the command line:and
pak::pkg_install()
works too:Is this a bug? A setting I'm missing?
The text was updated successfully, but these errors were encountered: