From 867e013a62a730a54e973c3a5658504f0daee424 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Mon, 16 May 2016 16:29:40 +0100 Subject: [PATCH] Improve guard for missing-git warning again. --- plugin/gitgutter.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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