mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 13:23:52 -05:00
:Gbrowse remote/branch should not resolve upstream
Old behavior: Follow remote/branch to local branch to upstream, wherever that happens to live. New behavior: Open branch at remote, without further resolution.
This commit is contained in:
@@ -2260,10 +2260,11 @@ function! s:Browse(bang,line1,count,...) abort
|
||||
if path =~# '^\.git/refs/remotes/.'
|
||||
if empty(remote)
|
||||
let remote = matchstr(path, '^\.git/refs/remotes/\zs[^/]\+')
|
||||
let branch = matchstr(path, '^\.git/refs/remotes/[^/]\+/\zs.\+')
|
||||
else
|
||||
let merge = matchstr(path, '^\.git/refs/remotes/[^/]\+/\zs.\+')
|
||||
let path = '.git/refs/heads/'.merge
|
||||
endif
|
||||
let merge = matchstr(path, '^\.git/refs/remotes/[^/]\+/\zs.\+')
|
||||
let branch = ''
|
||||
let path = '.git/refs/heads/'.merge
|
||||
elseif path =~# '^\.git/refs/heads/.'
|
||||
let branch = path[16:-1]
|
||||
elseif !exists('branch')
|
||||
|
||||
Reference in New Issue
Block a user