summaryrefslogtreecommitdiff
path: root/src/cache.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2013-04-03 22:30:07 +0200
committerVicent Marti <tanoku@gmail.com>2013-04-22 16:50:50 +0200
commit8842c75f172ed94be4ad11521d4083e97d740785 (patch)
treee864a71de4ec4745a57057541f5e5366a53c84cc /src/cache.c
parentc4e91d4500bdd357fbf7378bc10648a482513fa6 (diff)
downloadlibgit2-8842c75f172ed94be4ad11521d4083e97d740785.tar.gz
What has science done.
Diffstat (limited to 'src/cache.c')
-rw-r--r--src/cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cache.c b/src/cache.c
index f49515ef3..316007bdf 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -144,7 +144,7 @@ void *git_cache_store_raw(git_cache *cache, git_odb_object *entry)
{
git_cached_obj_incref(entry);
- if (!cache_should_store(entry->raw.type, entry->raw.len))
+ if (!cache_should_store(entry->cached.type, entry->cached.size))
return entry;
entry->cached.flags = GIT_CACHE_STORE_RAW;
@@ -155,7 +155,7 @@ void *git_cache_store_parsed(git_cache *cache, git_object *entry)
{
git_cached_obj_incref(entry);
- if (!cache_should_store(entry->type, 0 /* TODO */))
+ if (!cache_should_store(entry->cached.type, entry->cached.size))
return entry;
entry->cached.flags = GIT_CACHE_STORE_PARSED;