Really fix packed ref handling in :Gbrowse

References https://github.com/tpope/vim-fugitive/issues/1428
This commit is contained in:
Tim Pope
2020-01-06 15:59:25 -05:00
parent cfa7bdc82a
commit 4074727343

View File

@@ -5714,7 +5714,7 @@ function! fugitive#BrowseCommand(line1, count, range, bang, mods, arg, args) abo
if getfsize(ref_file) > 0 if getfsize(ref_file) > 0
let commit = readfile(ref_file, '', 1)[0] let commit = readfile(ref_file, '', 1)[0]
else else
let commit = fugitive#RevParse(ref_file, dir) let commit = fugitive#RevParse(commit[5:-1], dir)
endif endif
let i -= 1 let i -= 1
endwhile endwhile