mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2025-12-07 04:34:27 +08:00
Don't try to resolve tracked branch
Fugitive does this for us.
This commit is contained in:
@@ -227,12 +227,7 @@ function! rhubarb#fugitive_url(opts, ...) abort
|
|||||||
endif
|
endif
|
||||||
let path = substitute(a:opts.path, '^/', '', '')
|
let path = substitute(a:opts.path, '^/', '', '')
|
||||||
if path =~# '^\.git/refs/heads/'
|
if path =~# '^\.git/refs/heads/'
|
||||||
let branch = a:opts.repo.git_chomp('config','branch.'.path[16:-1].'.merge')[11:-1]
|
return root . '/commits/' . path[16:-1]
|
||||||
if branch ==# ''
|
|
||||||
return root . '/commits/' . path[16:-1]
|
|
||||||
else
|
|
||||||
return root . '/commits/' . branch
|
|
||||||
endif
|
|
||||||
elseif path =~# '^\.git/refs/tags/'
|
elseif path =~# '^\.git/refs/tags/'
|
||||||
return root . '/releases/tag/' . path[15:-1]
|
return root . '/releases/tag/' . path[15:-1]
|
||||||
elseif path =~# '^\.git/refs/remotes/[^/]\+/.'
|
elseif path =~# '^\.git/refs/remotes/[^/]\+/.'
|
||||||
|
|||||||
Reference in New Issue
Block a user