mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2025-12-06 20:24:29 +08:00
Drop support for Fugitive older than 3.0
There was a bug here anyways in the use of b:git_dir instead of l:git_dir.
This commit is contained in:
@@ -47,11 +47,7 @@ function! s:repo_homepage() abort
|
||||
if exists('b:rhubarb_homepage')
|
||||
return b:rhubarb_homepage
|
||||
endif
|
||||
if exists('*FugitiveRemoteUrl')
|
||||
let remote = FugitiveRemoteUrl()
|
||||
else
|
||||
let remote = fugitive#repo().config('remote.origin.url')
|
||||
endif
|
||||
let remote = FugitiveRemoteUrl()
|
||||
let homepage = rhubarb#HomepageForUrl(remote)
|
||||
if !empty(homepage)
|
||||
let b:rhubarb_homepage = homepage
|
||||
|
||||
Reference in New Issue
Block a user