builtin/read-tree: convert to struct object_id
[gitweb.git] / builtin / notes.c
index 7b891471c461ddc3cd2b9d3186cc8b005f68ca2b..f2847c41e00996f6ff129774961b5fafca513972 100644 (file)
@@ -706,7 +706,7 @@ static int merge_commit(struct notes_merge_options *o)
 
        if (get_oid("NOTES_MERGE_PARTIAL", &oid))
                die(_("failed to read ref NOTES_MERGE_PARTIAL"));
-       else if (!(partial = lookup_commit_reference(oid.hash)))
+       else if (!(partial = lookup_commit_reference(&oid)))
                die(_("could not find commit from NOTES_MERGE_PARTIAL."));
        else if (parse_commit(partial))
                die(_("could not parse commit from NOTES_MERGE_PARTIAL."));