mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-12-08 13:04:51 +08: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
|
return a:path
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! FugitiveVimPath(path) abort
|
if has('win32unix') && filereadable('/git-bash.exe')
|
||||||
return a:path
|
function! FugitiveVimPath(path) abort
|
||||||
endfunction
|
return substitute(a:path, '^\(\a\):', '/\l\1', '')
|
||||||
|
endfunction
|
||||||
|
else
|
||||||
|
function! FugitiveVimPath(path) abort
|
||||||
|
return a:path
|
||||||
|
endfunction
|
||||||
|
endif
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user