From 42c6fd1440cd886b0418a4902c89d0a108043750 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 6 Dec 2019 12:56:59 -0500 Subject: [PATCH] Don't override explicit empty string for core.askPass References https://github.com/tpope/vim-fugitive/issues/1410 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 1cf4e63..e818e5d 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -4393,7 +4393,7 @@ endfunction function! s:AskPassArgs(dir) abort if (len($DISPLAY) || len($TERM_PROGRAM) || has('gui_running')) && fugitive#GitVersion(1, 8) && - \ empty($GIT_ASKPASS) && empty($SSH_ASKPASS) && empty(fugitive#Config('core.askPass', a:dir)) + \ empty($GIT_ASKPASS) && empty($SSH_ASKPASS) && empty(get(fugitive#Config(a:dir), 'core.askpass', [])) if s:executable(s:ExecPath() . '/git-gui--askpass') return ['-c', 'core.askPass=' . s:ExecPath() . '/git-gui--askpass'] elseif s:executable('ssh-askpass')