notes-merge: convert find_notes_merge_pair_ps to struct object_id
[gitweb.git] / diffcore-rename.c
index f7444c86bde3909c8fca23f71c4852514eb26b88..3d9719dadcb4c3ce78e3151680692d4bee25200d 100644 (file)
@@ -60,7 +60,7 @@ static int add_rename_dst(struct diff_filespec *two)
                memmove(rename_dst + first + 1, rename_dst + first,
                        (rename_dst_nr - first - 1) * sizeof(*rename_dst));
        rename_dst[first].two = alloc_filespec(two->path);
-       fill_filespec(rename_dst[first].two, two->oid.hash, two->oid_valid,
+       fill_filespec(rename_dst[first].two, &two->oid, two->oid_valid,
                      two->mode);
        rename_dst[first].pair = NULL;
        return 0;