Improve guard for missing-git warning again.

This commit is contained in:
Andy Stewart
2016-05-16 16:29:40 +01:00
parent 55d8247848
commit 867e013a62

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_git_executable', 'git')
if !executable('git') && g:gitgutter_git_executable ==# 'git'
if !executable(g:gitgutter_git_executable)
call gitgutter#utility#warn('cannot find git. Please set g:gitgutter_git_executable.')
endif