diff --git a/autoload/rhubarb.vim b/autoload/rhubarb.vim index 584185c..1f4ff47 100644 --- a/autoload/rhubarb.vim +++ b/autoload/rhubarb.vim @@ -291,6 +291,9 @@ function! rhubarb#FugitiveUrl(...) abort else return '' endif + if empty(root) && exists('fugitive#RemoteHttpHeaders') && get(fugitive#RemoteHttpHeaders(opts), 'server', '') =~# '^GitHub Babel ' + let root = matchstr(opts.remote, '^https\=://[^/:@]\+\%(:\d\+\)\=/\(.\{-\}\)\ze\%(\.git\)\=/\=$') + endif if empty(root) return '' endif