mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2025-12-09 05:24:51 +08:00
Add another guard to :Gbrowse support
Now that I've actually had time to assess things, it's clear this parameter is only used as a way to convey the branch name and makes zero sense. So, it's going to get dropped sooner or later.
This commit is contained in:
@@ -184,7 +184,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({}) || !has_key(a:opts, 'repo') || !has_key(a:opts, 'revision')
|
||||
return ''
|
||||
endif
|
||||
let root = s:homepage_for_url(get(a:opts, 'remote'))
|
||||
|
||||
Reference in New Issue
Block a user