diff --git a/autoload/rhubarb.vim b/autoload/rhubarb.vim index 2a1d54d..7c3af24 100644 --- a/autoload/rhubarb.vim +++ b/autoload/rhubarb.vim @@ -265,11 +265,7 @@ function! rhubarb#FugitiveUrl(...) abort elseif path =~# '^\.git\>' return root endif - if opts.commit =~# '^\d\=$' - return '' - else - let commit = opts.commit - endif + let commit = opts.commit if get(opts, 'type', '') ==# 'tree' || opts.path =~# '/$' let url = substitute(root . '/tree/' . commit . '/' . path, '/$', '', 'g') elseif get(opts, 'type', '') ==# 'blob' || opts.path =~# '[^/]$'