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

Can't push with SSH under R 4.2 on Windows 10 #439

Open
jonathan-g opened this issue Apr 27, 2022 · 1 comment
Open

Can't push with SSH under R 4.2 on Windows 10 #439

jonathan-g opened this issue Apr 27, 2022 · 1 comment

Comments

@jonathan-g
Copy link

Short description:

Under R 4.1.3, I can push to github with SSH transport using git2r::push()

Under R 4.2.0 on the same computer, git2r::push() fails with

Error in git2r::push(".", name = "origin", credentials = cred, refspec = "/refs/heads/main") : 
  Error in 'git2r_push': Failed to retrieve list of SSH authentication methods: Failed getting response

Code to reproduce :

import(git2r)
cred = cred_ssh_key(publickey = "~/.ssh/id_ed25519.pub", privatekey = "~/.ssh/id_ed25519")
push(".", name = "origin", credentials = cred, refspec = "refs/heads/main")

The remote repository has URL "[email protected]:<username>/<repository>.git

This code succeeds under R 4.1.3 but fails under R 4.2.0. I have freshly installed git2r under R 4.2.0.

Session Info

R version 4.2.0 (2022-04-22 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.utf8  LC_CTYPE=English_United States.utf8    LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C                           LC_TIME=English_United States.utf8    

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

other attached packages:
[1] git2r_0.30.1

loaded via a namespace (and not attached):
[1] compiler_4.2.0    credentials_1.3.2 tools_4.2.0       openssl_2.0.0     sys_3.4           askpass_1.1 
@jonathan-g
Copy link
Author

I'm still seeing this error with R 4.2.1.

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