Fix a nonstandard fugitive error message
This commit is contained in:
parent
a02331e78f
commit
61698761e5
@ -859,7 +859,7 @@ function! s:BufReadObject()
|
|||||||
let b:fugitive_type = s:repo().git_chomp('cat-file','-t',hash)
|
let b:fugitive_type = s:repo().git_chomp('cat-file','-t',hash)
|
||||||
endif
|
endif
|
||||||
if b:fugitive_type !~# '^\%(tag\|commit\|tree\|blob\)$'
|
if b:fugitive_type !~# '^\%(tag\|commit\|tree\|blob\)$'
|
||||||
return "echoerr 'Unrecognized git type'"
|
return "echoerr 'fugitive: unrecognized git type'"
|
||||||
endif
|
endif
|
||||||
let firstline = getline('.')
|
let firstline = getline('.')
|
||||||
if !exists('b:fugitive_display_format') && b:fugitive_type != 'blob'
|
if !exists('b:fugitive_display_format') && b:fugitive_type != 'blob'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user