parse_object_buffer: do not set object type
commitfe0444b50b400a2c0b6263e8bd6ba464fea0ed4f
authorJeff King <peff@peff.net>
Sun, 13 Jul 2014 06:42:00 +0000 (13 02:42 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 28 Jul 2014 17:14:33 +0000 (28 10:14 -0700)
tree05a0616e98bb40d5f9077e2b2d4d28579891a528
parentfe24d396e1b8d2eedbc07f626af3dcd2b14e6012
parse_object_buffer: do not set object type

The only way that "obj" can be non-NULL is if it came from
one of the lookup_* functions. These functions always ensure
that the object has the expected type (and return NULL
otherwise), so there is no need for us to set the type.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object.c