From 4074727343e2a906f4bc1472685f59739f8346f0 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 6 Jan 2020 15:59:25 -0500 Subject: [PATCH] Really fix packed ref handling in :Gbrowse References https://github.com/tpope/vim-fugitive/issues/1428 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 61990b6..fbd90e1 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -5714,7 +5714,7 @@ function! fugitive#BrowseCommand(line1, count, range, bang, mods, arg, args) abo if getfsize(ref_file) > 0 let commit = readfile(ref_file, '', 1)[0] else - let commit = fugitive#RevParse(ref_file, dir) + let commit = fugitive#RevParse(commit[5:-1], dir) endif let i -= 1 endwhile