block alloc: add lifecycle APIs for cache_entry structs
[gitweb.git] / builtin / reset.c
index 00109b041f9130dbd8d0e908032bfb60c3e1552b..c3f0cfa1e81d02bbfd3e84c7f62ef018c835403b 100644 (file)
@@ -134,7 +134,7 @@ static void update_index_from_diff(struct diff_queue_struct *q,
                        continue;
                }
 
-               ce = make_cache_entry(one->mode, &one->oid, one->path,
+               ce = make_cache_entry(&the_index, one->mode, &one->oid, one->path,
                                      0, 0);
                if (!ce)
                        die(_("make_cache_entry failed for path '%s'"),