Fix error on :GBrowse remote/branch@remote

This commit is contained in:
Tim Pope
2021-08-29 15:57:29 -04:00
parent 10b44345b0
commit dfd7be2294

View File

@@ -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/.'