Remove dependency on repo in :Gbrowse

This commit is contained in:
Tim Pope
2018-07-19 00:42:09 -04:00
parent 3f10dff8cf
commit 186bf27e05

View File

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