lock_packed_refs(): take a `packed_ref_store *` parameter
[gitweb.git] / notes-utils.c
index 36c1490aa782dfda49bccc416b8cc733adeafc70..325ff3daa37c5a0ce26c608b2e7bfd8a94b7f396 100644 (file)
@@ -18,7 +18,7 @@ void create_notes_commit(struct notes_tree *t, struct commit_list *parents,
                /* Deduce parent commit from t->ref */
                struct object_id parent_oid;
                if (!read_ref(t->ref, parent_oid.hash)) {
-                       struct commit *parent = lookup_commit(parent_oid.hash);
+                       struct commit *parent = lookup_commit(&parent_oid);
                        if (parse_commit(parent))
                                die("Failed to find/parse commit %s", t->ref);
                        commit_list_insert(parent, &parents);