commit: convert commit_tree* to object_id
[gitweb.git] / notes-cache.c
index 17ee8602b3d2fbc2469a98e6cdeab0f2ff2b7ad3..d2f87147cca2395b4389b835308496474d7fcd22 100644 (file)
@@ -56,8 +56,8 @@ int notes_cache_write(struct notes_cache *c)
 
        if (write_notes_tree(&c->tree, tree_oid.hash))
                return -1;
-       if (commit_tree(c->validity, strlen(c->validity), tree_oid.hash, NULL,
-                       commit_oid.hash, NULL, NULL) < 0)
+       if (commit_tree(c->validity, strlen(c->validity), &tree_oid, NULL,
+                       &commit_oid, NULL, NULL) < 0)
                return -1;
        if (update_ref("update notes cache", c->tree.update_ref, &commit_oid,
                       NULL, 0, UPDATE_REFS_QUIET_ON_ERR) < 0)