X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=object.c;h=16793d9958a57664233b9e4468e112dfa1a8a915;hb=9fac800cae287256cea0512f5c5effae7a7aa784;hp=cfc4969ed9ba0ccfdba8f97637bac20be31d1eba;hpb=c63a3ad2c1d6f86cd7989055a133e06055239317;p=git.git diff --git a/object.c b/object.c index cfc4969ed..16793d995 100644 --- a/object.c +++ b/object.c @@ -160,8 +160,11 @@ struct object *parse_object_buffer(const unsigned char *sha1, enum object_type t parse_tag_buffer(tag, buffer, size); obj = &tag->object; } else { + warning("object %s has unknown type id %d\n", sha1_to_hex(sha1), type); obj = NULL; } + if (obj && obj->type == OBJ_NONE) + obj->type = type; *eaten_p = eaten; return obj; }