Allow opt-out of hub as git

Closes https://github.com/tpope/vim-rhubarb/issues/63
This commit is contained in:
Tim Pope
2020-11-29 08:28:53 -05:00
parent 0eaa213f01
commit 857865bdab

View File

@@ -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