notes: convert some accessor functions to struct object_id
[gitweb.git] / notes-utils.c
index 7d7c22b4351a07b703865b97cfbc0ed2083f7a38..b2aada90a2eab97aa31b57da356a738636c32b6c 100644 (file)
@@ -160,7 +160,7 @@ int copy_note_for_rewrite(struct notes_rewrite_cfg *c,
        int ret = 0;
        int i;
        for (i = 0; c->trees[i]; i++)
-               ret = copy_note(c->trees[i], from_obj->hash, to_obj->hash, 1, c->combine) || ret;
+               ret = copy_note(c->trees[i], from_obj, to_obj, 1, c->combine) || ret;
        return ret;
 }