ls-files: convert write_eolinfo to take an index
[gitweb.git] / builtin / notes.c
index fb856e53b610087128094e3fc4deb7bab2106801..7196bff0eb2454eee86f87241706523c0266e66e 100644 (file)
@@ -708,7 +708,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."));