Open maximilianmordig opened 3 years ago
https://github.com/r-lib/gert/blob/3d5e13b3ba75acdd32c7efe3457a90b7806f7106/R/fetch.R#L48
Calling
gert::git_clone( url = "https://github.company.com/repo1", path = ".", password = "accessToken" )
does not work because the username is not provided to make_cred_cb (NA). By changing https://github.com/r-lib/gert/blob/3d5e13b3ba75acdd32c7efe3457a90b7806f7106/R/credentials.R#L40 to username <- "git", this works with on-premise GitHub. However, it does not work with on-premise Gitlab, where it fails with:
username <- "git"
Error in libgit2::git_clone : server requires authentication that we do not support
git2r::clone supports both via git2r::cred_token.
git2r::clone
git2r::cred_token
https://github.com/r-lib/gert/blob/3d5e13b3ba75acdd32c7efe3457a90b7806f7106/R/fetch.R#L48
Calling
does not work because the username is not provided to make_cred_cb (NA). By changing https://github.com/r-lib/gert/blob/3d5e13b3ba75acdd32c7efe3457a90b7806f7106/R/credentials.R#L40 to
username <- "git"
, this works with on-premise GitHub. However, it does not work with on-premise Gitlab, where it fails with:git2r::clone
supports both viagit2r::cred_token
.