commit: record buffer length in cache
[gitweb.git] / builtin / index-pack.c
index 42551ce4ff65c170fffb88c5e9bb639bfc83fe91..459b9f07bb674e92a11df79e0c0445acb20c595a 100644 (file)
@@ -774,7 +774,7 @@ static void sha1_object(const void *data, struct object_entry *obj_entry,
                        }
                        if (obj->type == OBJ_COMMIT) {
                                struct commit *commit = (struct commit *) obj;
-                               if (detach_commit_buffer(commit) != data)
+                               if (detach_commit_buffer(commit, NULL) != data)
                                        die("BUG: parse_object_buffer transmogrified our buffer");
                        }
                        obj->flags |= FLAG_CHECKED;