summaryrefslogtreecommitdiff
path: root/object-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'object-file.c')
-rw-r--r--object-file.c2
1 files changed, 2 insertions, 0 deletions
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;