mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2025-12-06 12:14:26 +08:00
Switch from FugitiveConfig() to FugitiveConfigGet()
This commit is contained in:
@@ -65,8 +65,8 @@ endfunction
|
|||||||
function! s:credentials() abort
|
function! s:credentials() abort
|
||||||
if !exists('g:github_user')
|
if !exists('g:github_user')
|
||||||
let g:github_user = $GITHUB_USER
|
let g:github_user = $GITHUB_USER
|
||||||
if g:github_user ==# '' && exists('*FugitiveConfig')
|
if g:github_user ==# '' && exists('*FugitiveConfigGet')
|
||||||
let g:github_user = FugitiveConfig('github.user', '')
|
let g:github_user = FugitiveConfigGet('github.user', '')
|
||||||
endif
|
endif
|
||||||
if g:github_user ==# ''
|
if g:github_user ==# ''
|
||||||
let g:github_user = $LOGNAME
|
let g:github_user = $LOGNAME
|
||||||
@@ -74,8 +74,8 @@ function! s:credentials() abort
|
|||||||
endif
|
endif
|
||||||
if !exists('g:github_password')
|
if !exists('g:github_password')
|
||||||
let g:github_password = $GITHUB_PASSWORD
|
let g:github_password = $GITHUB_PASSWORD
|
||||||
if g:github_password ==# '' && exists('*FugitiveConfig')
|
if g:github_password ==# '' && exists('*FugitiveConfigGet')
|
||||||
let g:github_password = FugitiveConfig('github.password', '')
|
let g:github_password = FugitiveConfigGet('github.password', '')
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
return g:github_user.':'.g:github_password
|
return g:github_user.':'.g:github_password
|
||||||
|
|||||||
Reference in New Issue
Block a user