From dfd7be22948765ac56de1c559694d689d2e98ea3 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 29 Aug 2021 15:57:29 -0400 Subject: [PATCH] Fix error on :GBrowse remote/branch@remote --- autoload/fugitive.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index e0605a5..496a378 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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/.'