mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2025-12-06 12:14:26 +08:00
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:
@@ -301,8 +301,6 @@ function! rhubarb#FugitiveUrl(...) abort
|
||||
return root . '/releases/tag/' . path[15:-1]
|
||||
elseif path =~# '^\.git/refs/remotes/[^/]\+/.'
|
||||
return root . '/commits/' . matchstr(path,'remotes/[^/]\+/\zs.*')
|
||||
elseif path =~# '^\.git/\%(config$\|hooks\>\)'
|
||||
return root . '/admin'
|
||||
elseif path =~# '^\.git\>'
|
||||
return root
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user