mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 13:23:52 -05:00
Add special case error for failure to find Git in PATH
This commit is contained in:
@@ -91,6 +91,10 @@ function! s:VersionCheck() abort
|
||||
if v:version < 704
|
||||
return 'return ' . string('echoerr "fugitive: Vim 7.4 or newer required"')
|
||||
elseif empty(fugitive#GitVersion())
|
||||
let exe = get(s:GitCmd(), 0, '')
|
||||
if exists('*exepath') && len(exe) && empty(exepath(exe))
|
||||
return 'return ' . string('echoerr "fugitive: cannot find ' . string(exe) . ' in PATH"')
|
||||
endif
|
||||
return 'return ' . string('echoerr "fugitive: cannot execute Git"')
|
||||
elseif !fugitive#GitVersion(1, 8, 5)
|
||||
return 'return ' . string('echoerr "fugitive: Git 1.8.5 or newer required"')
|
||||
|
||||
Reference in New Issue
Block a user