From 42175a0441e45bccd25d846b73165d7371fc593b Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 19 Feb 2013 23:50:33 -0500 Subject: [PATCH] Enable hub if installed --- plugin/rhubarb.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/rhubarb.vim b/plugin/rhubarb.vim index 09422d6..d3d9ee1 100644 --- a/plugin/rhubarb.vim +++ b/plugin/rhubarb.vim @@ -6,6 +6,10 @@ if exists("g:loaded_rhubarb") || v:version < 700 || &cp endif let g:loaded_rhubarb = 1 +if get(g:, 'fugitive_git_executable', 'git') ==# 'git' && executable('hub') + let g:fugitive_git_executable = 'hub' +endif + " Utility {{{1 function! s:throw(string) abort