mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-03 17:03:53 +08:00
Make unrecognized git type error more informative
This commit is contained in:
1 parent
87c1bda4d5
commit
90cbbf5854
1 file changed
+1
-1
+1
-1
@@ -2662,7 +2662,7 @@ function! s:BufReadObject() abort
|
||||
let b:fugitive_type = s:repo().git_chomp('cat-file','-t',hash)
|
||||
endif
|
||||
if b:fugitive_type !~# '^\%(tag\|commit\|tree\|blob\)$'
|
||||
return "echoerr 'fugitive: unrecognized git type'"
|
||||
return "echoerr ".string("fugitive: unrecognized git type '".b:fugitive_type."'")
|
||||
endif
|
||||
let firstline = getline('.')
|
||||
if !exists('b:fugitive_display_format') && b:fugitive_type != 'blob'
|
||||
|
||||
Reference in new issue
Block a user