Fix guard for missing-git warning.

This commit is contained in:
Andy Stewart
2016-05-16 13:50:27 +01:00
parent f5a5234f22
commit 55d8247848

View File

@@ -53,7 +53,7 @@ call s:set('g:gitgutter_async', 1)
call s:set('g:gitgutter_log', 0) call s:set('g:gitgutter_log', 0)
call s:set('g:gitgutter_git_executable', 'git') 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.') call gitgutter#utility#warn('cannot find git. Please set g:gitgutter_git_executable.')
endif endif