mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2025-12-06 12:14:26 +08:00
Remove dependency on repo in :Gbrowse
This commit is contained in:
@@ -218,7 +218,7 @@ endfunction
|
||||
" Section: Fugitive :Gbrowse support
|
||||
|
||||
function! rhubarb#fugitive_url(opts, ...) abort
|
||||
if a:0 || type(a:opts) != type({}) || !has_key(a:opts, 'repo')
|
||||
if a:0 || type(a:opts) != type({})
|
||||
return ''
|
||||
endif
|
||||
let root = rhubarb#homepage_for_url(get(a:opts, 'remote'))
|
||||
|
||||
Reference in New Issue
Block a user