mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
When git cannot be found only warn if plugin enabled
This enables the plugin to be loaded on systems without git, without emitting any warnings. See #702.
This commit is contained in:
@@ -69,7 +69,9 @@ call s:set('g:gitgutter_use_location_list', 0)
|
||||
|
||||
call s:set('g:gitgutter_git_executable', 'git')
|
||||
if !executable(g:gitgutter_git_executable)
|
||||
call gitgutter#utility#warn('cannot find git. Please set g:gitgutter_git_executable.')
|
||||
if g:gitgutter_enabled
|
||||
call gitgutter#utility#warn('cannot find git. Please set g:gitgutter_git_executable.')
|
||||
endif
|
||||
endif
|
||||
|
||||
let default_grep = 'grep'
|
||||
|
||||
Reference in New Issue
Block a user