X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=diffcore-rename.c;h=512d0ac5fd2bc0acfb57147a6eb77f61f92b7c7e;hb=2a9ccfff5553b8ab28eb5a172738cc9f3afadcd5;hp=216a7a4bbcab189b5c3d1b7f58728b94b8d6aec8;hpb=9dd8175be629c9ed5a102a42df1e6cc3f187eb64;p=git.git diff --git a/diffcore-rename.c b/diffcore-rename.c index 216a7a4bb..512d0ac5f 100644 --- a/diffcore-rename.c +++ b/diffcore-rename.c @@ -48,7 +48,7 @@ static struct diff_rename_dst *locate_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->sha1, two->mode); + fill_filespec(rename_dst[first].two, two->sha1, two->sha1_valid, two->mode); rename_dst[first].pair = NULL; return &(rename_dst[first]); }