]> git.ipfire.org Git - thirdparty/git.git/commit - object.c
parse_object_buffer: don't ignore errors from the object specific parsing functions
authorMartin Koegler <mkoegler@auto.tuwien.ac.at>
Sun, 3 Feb 2008 21:22:39 +0000 (22:22 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 4 Feb 2008 00:04:57 +0000 (16:04 -0800)
commitd0b8c9e561ea427104611bf392598a398c18d7cb
tree1ec48c0db63802b848a3ec8931ebba69caa3cf0e
parentd4fe07f14975b87fa26776792a95f411473cfb46
parse_object_buffer: don't ignore errors from the object specific parsing functions

In the case of an malformed object, the object specific parsing functions
would return an error, which is currently ignored. The object can be partial
initialized in this case.

This patch make parse_object_buffer propagate such errors.

Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object.c