mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-09 03:53:47 -05:00
Fix guard for missing-git warning.
This commit is contained in:
@@ -53,7 +53,7 @@ call s:set('g:gitgutter_async', 1)
|
||||
call s:set('g:gitgutter_log', 0)
|
||||
call s:set('g:gitgutter_git_executable', 'git')
|
||||
|
||||
if !executable('git')
|
||||
if !executable('git') && g:gitgutter_git_executable ==# 'git'
|
||||
call gitgutter#utility#warn('cannot find git. Please set g:gitgutter_git_executable.')
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user