diff --git a/object-file.c b/object-file.c index 619f039ebc..f36846b5ba 100644 --- a/object-file.c +++ b/object-file.c @@ -1491,6 +1491,8 @@ static int loose_object_info(struct repository *r, if (!oi->contentp) break; + if (hdrbuf.len) + BUG("unpacking content with unknown types not yet supported"); *oi->contentp = unpack_loose_rest(&stream, hdr, *oi->sizep, oid); if (*oi->contentp) goto cleanup;