Swap in alternative API

This commit is contained in:
Tim Pope
2018-07-22 17:10:02 -04:00
parent 848841083d
commit 8a4ced4f00

View File

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