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