diff --git a/autoload/rhubarb.vim b/autoload/rhubarb.vim index a0cf95d..c7dc642 100644 --- a/autoload/rhubarb.vim +++ b/autoload/rhubarb.vim @@ -201,8 +201,8 @@ function! rhubarb#fugitive_url(opts, ...) abort endif elseif path =~# '^\.git/refs/tags/' return root . '/releases/tag/' . path[15:-1] - elseif path =~# '^\.git/refs/.' - return root . '/commits/' . matchstr(path,'[^/]\+$') + elseif path =~# '^\.git/refs/remotes/[^/]\+/.' + return root . '/commits/' . matchstr(path,'remotes/[^/]\+/\zs.*') elseif path =~# '.git/\%(config$\|hooks\>\)' return root . '/admin' elseif path =~# '^\.git\>'