From 55d82478488a87350fa2012aba152352a709649b Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Mon, 16 May 2016 13:50:27 +0100 Subject: [PATCH] Fix guard for missing-git warning. --- plugin/gitgutter.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/gitgutter.vim b/plugin/gitgutter.vim index 84f6ef8..87c9f01 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') +if !executable('git') && g:gitgutter_git_executable ==# 'git' call gitgutter#utility#warn('cannot find git. Please set g:gitgutter_git_executable.') endif