revision.c: reduce implicit dependency the_repository
[gitweb.git] / notes-merge.c
index 432edfb89afb29b992dbbd103a6eeecc52c5db8f..13dd9ba1582b68c2a8e6083fab4b4ee86f9026c6 100644 (file)
@@ -710,7 +710,7 @@ int notes_merge_commit(struct notes_merge_options *o,
                /* write file as blob, and add to partial_tree */
                if (stat(path.buf, &st))
                        die_errno("Failed to stat '%s'", path.buf);
-               if (index_path(&blob_oid, path.buf, &st, HASH_WRITE_OBJECT))
+               if (index_path(&the_index, &blob_oid, path.buf, &st, HASH_WRITE_OBJECT))
                        die("Failed to write blob object from '%s'", path.buf);
                if (add_note(partial_tree, &obj_oid, &blob_oid, NULL))
                        die("Failed to add resolved note '%s' to notes tree",