refs: convert read_raw_ref backends to struct object_id
[gitweb.git] / sequencer.c
index 3031e7364d74e995297a7b8a72e04655c2ea3421..0d20ac760a3e2b0a16794ee33f496ff179d1bf5a 100644 (file)
@@ -489,7 +489,7 @@ static int is_index_unchanged(void)
        struct object_id head_oid;
        struct commit *head_commit;
 
-       if (!resolve_ref_unsafe("HEAD", RESOLVE_REF_READING, head_oid.hash, NULL))
+       if (!resolve_ref_unsafe("HEAD", RESOLVE_REF_READING, &head_oid, NULL))
                return error(_("could not resolve HEAD commit\n"));
 
        head_commit = lookup_commit(&head_oid);