git2r
git2r copied to clipboard
Can't push with SSH under R 4.2 on Windows 10
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
I'm still seeing this error with R 4.2.1.