From ac904e806daf1c6b1d3857d5f7d9f270b90ebc4c Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 26 Dec 2015 14:18:00 -0500 Subject: [PATCH] Don't pass stage number as commit to :Gbrowse handler --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index e98eb5e..a7113bd 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -2191,7 +2191,7 @@ function! s:Browse(bang,line1,count,...) abort let full = s:repo().translate(expanded) let commit = '' if full =~# '^fugitive://' - let commit = matchstr(full,'://.*//\zs\w\+') + let commit = matchstr(full,'://.*//\zs\w\w\+') let path = matchstr(full,'://.*//\w\+\zs/.*') if commit =~ '..' let type = s:repo().git_chomp('cat-file','-t',commit.s:sub(path,'^/',':'))