mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 21:33:53 -05:00
Support Git for Windows bundled MSYS Vim
References: https://github.com/tpope/vim-fugitive/issues/1970
This commit is contained in:
@@ -526,9 +526,15 @@ else
|
||||
return a:path
|
||||
endfunction
|
||||
|
||||
function! FugitiveVimPath(path) abort
|
||||
return a:path
|
||||
endfunction
|
||||
if has('win32unix') && filereadable('/git-bash.exe')
|
||||
function! FugitiveVimPath(path) abort
|
||||
return substitute(a:path, '^\(\a\):', '/\l\1', '')
|
||||
endfunction
|
||||
else
|
||||
function! FugitiveVimPath(path) abort
|
||||
return a:path
|
||||
endfunction
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user