From 857865bdab4bf134789484c36181346fdc29ccb9 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 29 Nov 2020 08:28:53 -0500 Subject: [PATCH] Allow opt-out of hub as git Closes https://github.com/tpope/vim-rhubarb/issues/63 --- plugin/rhubarb.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/rhubarb.vim b/plugin/rhubarb.vim index dc982e1..776ec7c 100644 --- a/plugin/rhubarb.vim +++ b/plugin/rhubarb.vim @@ -11,7 +11,7 @@ if !exists('g:dispatch_compilers') endif let g:dispatch_compilers['hub'] = 'git' -if get(g:, 'fugitive_git_command', 'git') ==# 'git' && executable('hub') +if !exists('g:fugitive_git_command') && executable('hub') let g:fugitive_git_command = 'hub' endif