pack: convert struct pack_idx_entry to struct object_id
[gitweb.git] / walker.c
index 2c86e406f92d9bf0063e6be4f9d76fdbbac17c89..b499fcb7290ec690d61cd7601f9675100ce50312 100644 (file)
--- a/walker.c
+++ b/walker.c
@@ -206,7 +206,7 @@ static int interpret_target(struct walker *walker, char *target, unsigned char *
 static int mark_complete(const char *path, const struct object_id *oid,
                         int flag, void *cb_data)
 {
-       struct commit *commit = lookup_commit_reference_gently(oid->hash, 1);
+       struct commit *commit = lookup_commit_reference_gently(oid, 1);
 
        if (commit) {
                commit->object.flags |= COMPLETE;