summaryrefslogtreecommitdiff
path: root/src/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/object.c')
-rw-r--r--src/object.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/object.c b/src/object.c
index 5542ebc8e..54ceea33c 100644
--- a/src/object.c
+++ b/src/object.c
@@ -98,6 +98,7 @@ int git_object__from_odb_object(
/* Initialize parent object */
git_oid_cpy(&object->cached.oid, &odb_obj->cached.oid);
+ object->cached.cache_size = (uint32_t)odb_obj->raw.len;
object->repo = repo;
switch (type) {