mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2025-12-06 12:14:26 +08:00
Swap in alternative API
This commit is contained in:
@@ -44,8 +44,8 @@ function! s:repo_homepage() abort
|
||||
if exists('b:rhubarb_homepage')
|
||||
return b:rhubarb_homepage
|
||||
endif
|
||||
if exists('*fugitive#RemoteUrl')
|
||||
let remote = fugitive#RemoteUrl()
|
||||
if exists('*FugitiveRemoteUrl')
|
||||
let remote = FugitiveRemoteUrl()
|
||||
else
|
||||
let remote = fugitive#repo().config('remote.origin.url')
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user