r-lib / gitcreds

Query git credentials from R
https://gitcreds.r-lib.org/
Other
27 stars 10 forks source link

Error in `gitcreds_list()` #17

Closed lionel- closed 3 years ago

lionel- commented 3 years ago
gitcreds::gitcreds_list()
#> Error in switch(credential_helper, osxkeychain = gitcreds_list_osxkeychain(url,  :
#>   EXPR must be a length 1 vector
#> In addition: Warning message:
#> In throw(new_warning("gitcreds_multiple_helpers")) :
#>   Multiple credential helpers, only using the first
gaborcsardi commented 3 years ago

Yeah, this is a bug. You can run gitcreds::gitcreds_list(credential_helper = "osxkeychain") or manager-core, if that's the helper you are using.

lionel- commented 3 years ago

Is it normal to have duplicates?

gitcreds::gitcreds_list_helpers()
#> [1] "osxkeychain" "osxkeychain"
gaborcsardi commented 3 years ago

No really, but it is probably harmless. I guess it is in your user config, and it is also in the system config. This will tell you where they are coming from:

git config --get-all --show-origin credential.helper
lionel- commented 3 years ago

ah that looks like it:

file:/Applications/Xcode.app/Contents/Developer/usr/share/git-core/gitconfig    osxkeychain
file:/Users/lionel/.gitconfig   osxkeychain