Bail early if git cannot be found

There is no point trying to run without git.
This commit is contained in:
Andy Stewart
2020-04-27 14:12:33 +01:00
parent a194e9da01
commit 67d5dc11d6

View File

@@ -72,6 +72,7 @@ if !executable(g:gitgutter_git_executable)
if g:gitgutter_enabled
call gitgutter#utility#warn('cannot find git. Please set g:gitgutter_git_executable.')
endif
finish
endif
let default_grep = 'grep'