Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0277735

Browse files
committed
update default helper
1 parent81c138a commit0277735

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

‎R/credential-helpers.R‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
credential_helper_list<-function(){
1212
text<- git_with_sys(c("help","-a"))
1313
m<- gregexpr("credential-[^\t]+",text)
14-
regmatches(text,m)[[1]]
14+
trimws(regmatches(text,m)[[1]])
1515
}
1616

1717
#' @export

‎R/onattach.R‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@ set_default_cred_helper <- function(){
6565
credential_helper_get()
6666
},error=function(...){
6767
tryCatch({
68-
helper<- credential_helper_list()[1]
69-
credential_helper_set(helper,global=TRUE)
68+
helpers<- credential_helper_list()
69+
if('credential-manager'%in%helper)
70+
helpers<-'credential-manager'
71+
credential_helper_set(helpers[1],global=TRUE)
7072
},error=function(e){
7173
packageStartupMessage(e$message)
7274
})

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp