Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
object: convert lookup_object() to use object_id
[gitweb.git]
/
commit.c
diff --git
a/commit.c
b/commit.c
index 8fa1883c61c580578a755cdf2da009203d8d386e..f47c75afae7f14a6f0e15aaa89890dcdfeeba8ce 100644
(file)
--- a/
commit.c
+++ b/
commit.c
@@
-57,7
+57,7
@@
struct commit *lookup_commit_or_die(const struct object_id *oid, const char *ref
struct commit *lookup_commit(struct repository *r, const struct object_id *oid)
{
- struct object *obj = lookup_object(r, oid
->hash
);
+ struct object *obj = lookup_object(r, oid);
if (!obj)
return create_object(r, oid->hash,
alloc_commit_node(r));