Restore "hub" support using g:fugitive_git_command

This commit is contained in:
Tim Pope
2017-04-11 18:57:03 -04:00
parent 563daee79a
commit 925dec7ee7
2 changed files with 7 additions and 0 deletions

View File

@@ -11,6 +11,10 @@ if !exists('g:dispatch_compilers')
endif
let g:dispatch_compilers['hub'] = 'git'
if get(g:, 'fugitive_git_command', 'git') ==# 'git' && executable('hub')
let g:fugitive_git_command = 'hub'
endif
function! s:config() abort
let common_dir = fugitive#buffer().repo().dir('commondir')
if filereadable(common_dir)