Fix a nonstandard fugitive error message

This commit is contained in:
Tim Pope 2009-10-12 22:11:34 -04:00
parent a02331e78f
commit 61698761e5

View File

@ -859,7 +859,7 @@ function! s:BufReadObject()
let b:fugitive_type = s:repo().git_chomp('cat-file','-t',hash)
endif
if b:fugitive_type !~# '^\%(tag\|commit\|tree\|blob\)$'
return "echoerr 'Unrecognized git type'"
return "echoerr 'fugitive: unrecognized git type'"
endif
let firstline = getline('.')
if !exists('b:fugitive_display_format') && b:fugitive_type != 'blob'