mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2025-12-06 12:14:26 +08:00
Restore "hub" support using g:fugitive_git_command
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user