Remove admin URL special case

This was cute, but not very useful, and could create confusion when used
on a repository without admin privileges.
This commit is contained in:
Tim Pope
2022-05-11 02:13:25 -04:00
parent 977b3ccbad
commit ab0d42bb31

View File

@@ -301,8 +301,6 @@ function! rhubarb#FugitiveUrl(...) abort
return root . '/releases/tag/' . path[15:-1] return root . '/releases/tag/' . path[15:-1]
elseif path =~# '^\.git/refs/remotes/[^/]\+/.' elseif path =~# '^\.git/refs/remotes/[^/]\+/.'
return root . '/commits/' . matchstr(path,'remotes/[^/]\+/\zs.*') return root . '/commits/' . matchstr(path,'remotes/[^/]\+/\zs.*')
elseif path =~# '^\.git/\%(config$\|hooks\>\)'
return root . '/admin'
elseif path =~# '^\.git\>' elseif path =~# '^\.git\>'
return root return root
endif endif