mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 05:43:52 -05:00
Properly normalize Git dir in 'keywordprg'
This commit is contained in:
@@ -6677,7 +6677,7 @@ endfunction
|
||||
" Section: :Git blame
|
||||
|
||||
function! s:Keywordprg() abort
|
||||
let args = ' --git-dir='.escape(s:Dir(),"\\\"' ")
|
||||
let args = ' --git-dir=' . escape(FugitiveGitPath(s:GitDir()), "\\\"' ")
|
||||
if has('gui_running') && !has('win32')
|
||||
return s:GitShellCmd() . ' --no-pager' . args . ' log -1'
|
||||
else
|
||||
@@ -7181,7 +7181,7 @@ endfunction
|
||||
function! fugitive#BlameFileType() abort
|
||||
setlocal nomodeline
|
||||
setlocal foldmethod=manual
|
||||
if len(s:Dir())
|
||||
if len(s:GitDir())
|
||||
let &l:keywordprg = s:Keywordprg()
|
||||
endif
|
||||
let b:undo_ftplugin = 'setl keywordprg= foldmethod<'
|
||||
|
||||
Reference in New Issue
Block a user