X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=object.c;h=16793d9958a57664233b9e4468e112dfa1a8a915;hb=4d1012c3709e356107d0fb0e3bf5a39e0d5c209d;hp=cfc4969ed9ba0ccfdba8f97637bac20be31d1eba;hpb=d1c7c27ea3d9c92be2c7a9c5fc72ba5f228c424a;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; }