diff --git a/plugin/gitgutter.vim b/plugin/gitgutter.vim index 87c9f01..ff87a0a 100644 --- a/plugin/gitgutter.vim +++ b/plugin/gitgutter.vim @@ -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