Don't pass stage number as commit to :Gbrowse handler

This commit is contained in:
Tim Pope 2015-12-26 14:18:00 -05:00
parent 9f768cd3bc
commit ac904e806d

View File

@ -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,'^/',':'))