]> git.ipfire.org Git - thirdparty/git.git/blobdiff - notes-utils.c
refs: convert read_ref and read_ref_full to object_id
[thirdparty/git.git] / notes-utils.c
index 3a7008948c785163f68050c27aaae3c55c03bb5f..5c8e70c98fd26cca8bc690bc92653dd578a78c92 100644 (file)
@@ -18,7 +18,7 @@ void create_notes_commit(struct notes_tree *t, struct commit_list *parents,
        if (!parents) {
                /* Deduce parent commit from t->ref */
                struct object_id parent_oid;
-               if (!read_ref(t->ref, parent_oid.hash)) {
+               if (!read_ref(t->ref, &parent_oid)) {
                        struct commit *parent = lookup_commit(&parent_oid);
                        if (parse_commit(parent))
                                die("Failed to find/parse commit %s", t->ref);