commit: add repository argument to parse_commit_buffer
[gitweb.git] / object.c
index 530c55e41e42ed192e9e86c32ea815e2812ef2c2..5494c0cbaa1f51c6b87c05dfc1346d6c1c15eb16 100644 (file)
--- a/object.c
+++ b/object.c
@@ -214,7 +214,7 @@ struct object *parse_object_buffer_the_repository(const struct object_id *oid, e
        } else if (type == OBJ_COMMIT) {
                struct commit *commit = lookup_commit(the_repository, oid);
                if (commit) {
-                       if (parse_commit_buffer(commit, buffer, size, 1))
+                       if (parse_commit_buffer(the_repository, commit, buffer, size, 1))
                                return NULL;
                        if (!get_cached_commit_buffer(commit, NULL)) {
                                set_commit_buffer(commit, buffer, size);