Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
alloc: add repository argument to alloc_commit_node
[gitweb.git]
/
commit.c
diff --git
a/commit.c
b/commit.c
index 9106acf0aadca1047002cfa32d62ececb78f60c3..a9a43e79bae3ced1ea7bd66e09c9f47d8e63997d 100644
(file)
--- a/
commit.c
+++ b/
commit.c
@@
-51,7
+51,7
@@
struct commit *lookup_commit(const struct object_id *oid)
struct object *obj = lookup_object(oid->hash);
if (!obj)
return create_object(the_repository, oid->hash,
- alloc_commit_node());
+ alloc_commit_node(
the_repository
));
return object_as_type(obj, OBJ_COMMIT, 0);
}