mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 04:53:45 -05:00
Fix error on :GBrowse remote/branch@remote
This commit is contained in:
@@ -7044,6 +7044,7 @@ function! fugitive#BrowseCommand(line1, count, range, bang, mods, arg, args) abo
|
|||||||
let branch = matchstr(path, '^\.git/refs/remotes/[^/]\+/\zs.\+')
|
let branch = matchstr(path, '^\.git/refs/remotes/[^/]\+/\zs.\+')
|
||||||
else
|
else
|
||||||
let merge = matchstr(path, '^\.git/refs/remotes/[^/]\+/\zs.\+')
|
let merge = matchstr(path, '^\.git/refs/remotes/[^/]\+/\zs.\+')
|
||||||
|
let branch = merge
|
||||||
let path = '.git/refs/heads/'.merge
|
let path = '.git/refs/heads/'.merge
|
||||||
endif
|
endif
|
||||||
elseif path =~# '^\.git/refs/heads/.'
|
elseif path =~# '^\.git/refs/heads/.'
|
||||||
|
|||||||
Reference in New Issue
Block a user