mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 20:43:46 -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.\+')
|
||||
else
|
||||
let merge = matchstr(path, '^\.git/refs/remotes/[^/]\+/\zs.\+')
|
||||
let branch = merge
|
||||
let path = '.git/refs/heads/'.merge
|
||||
endif
|
||||
elseif path =~# '^\.git/refs/heads/.'
|
||||
|
||||
Reference in New Issue
Block a user