refs: convert update_ref and refs_update_ref to use struct object_id
[gitweb.git] / notes-cache.c
index 29b4cede5f8d539416d0af22f31b0aabc0e28c46..a1969ab05273221d4e6b20fd63976766beea3d45 100644 (file)
@@ -59,7 +59,7 @@ int notes_cache_write(struct notes_cache *c)
        if (commit_tree(c->validity, strlen(c->validity), tree_oid.hash, NULL,
                        commit_oid.hash, NULL, NULL) < 0)
                return -1;
-       if (update_ref("update notes cache", c->tree.update_ref, commit_oid.hash,
+       if (update_ref("update notes cache", c->tree.update_ref, &commit_oid,
                       NULL, 0, UPDATE_REFS_QUIET_ON_ERR) < 0)
                return -1;