diff options
Diffstat (limited to 'shared.c')
-rw-r--r-- | shared.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -402,8 +402,8 @@ void cgit_diff_commit(struct commit *commit, filepair_fn fn, const char *prefix) | |||
402 | unsigned char *old_sha1 = NULL; | 402 | unsigned char *old_sha1 = NULL; |
403 | 403 | ||
404 | if (commit->parents) | 404 | if (commit->parents) |
405 | old_sha1 = commit->parents->item->object.sha1; | 405 | old_sha1 = commit->parents->item->object.oid.hash; |
406 | cgit_diff_tree(old_sha1, commit->object.sha1, fn, prefix, | 406 | cgit_diff_tree(old_sha1, commit->object.oid.hash, fn, prefix, |
407 | ctx.qry.ignorews); | 407 | ctx.qry.ignorews); |
408 | } | 408 | } |
409 | 409 | ||