diff --git a/autoload/rhubarb.vim b/autoload/rhubarb.vim index 65c547c..63b4761 100644 --- a/autoload/rhubarb.vim +++ b/autoload/rhubarb.vim @@ -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') || !has_key(a:opts, 'revision') + if a:0 || type(a:opts) != type({}) || !has_key(a:opts, 'repo') return '' endif let root = rhubarb#homepage_for_url(get(a:opts, 'remote')) @@ -208,14 +208,8 @@ function! rhubarb#fugitive_url(opts, ...) abort elseif path =~# '^\.git\>' return root endif - if a:opts.revision =~# '^[[:alnum:]._-]\+:' - let commit = matchstr(a:opts.revision,'^[^:]*') - elseif a:opts.commit =~# '^\d\=$' - let local = matchstr(a:opts.repo.head_ref(),'\