summaryrefslogtreecommitdiff
path: root/src/object.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2013-04-03 20:57:30 +0200
committerVicent Marti <tanoku@gmail.com>2013-04-22 16:50:50 +0200
commitc4e91d4500bdd357fbf7378bc10648a482513fa6 (patch)
treec0be7df93bd56f52c20835359c3a89e11562c7c2 /src/object.c
parent6b90e244de78640b751d0923c91c3868e12b8658 (diff)
downloadlibgit2-c4e91d4500bdd357fbf7378bc10648a482513fa6.tar.gz
Random eviction
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) {