mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 19:43:47 -05:00
Bail early if git cannot be found
There is no point trying to run without git.
This commit is contained in:
@@ -72,6 +72,7 @@ if !executable(g:gitgutter_git_executable)
|
|||||||
if g:gitgutter_enabled
|
if g:gitgutter_enabled
|
||||||
call gitgutter#utility#warn('cannot find git. Please set g:gitgutter_git_executable.')
|
call gitgutter#utility#warn('cannot find git. Please set g:gitgutter_git_executable.')
|
||||||
endif
|
endif
|
||||||
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let default_grep = 'grep'
|
let default_grep = 'grep'
|
||||||
|
|||||||
Reference in New Issue
Block a user