]> gitweb.ps.run Git - ps-cgit/blobdiff - shared.c
git: update to v2.7.0
[ps-cgit] / shared.c
index e216c642a4f374c4e7fce922c66c31527eb6b522..42b2ddc25ea90328fd3f2b08eb73929012df3098 100644 (file)
--- a/shared.c
+++ b/shared.c
@@ -402,8 +402,8 @@ void cgit_diff_commit(struct commit *commit, filepair_fn fn, const char *prefix)
        unsigned char *old_sha1 = NULL;
 
        if (commit->parents)
-               old_sha1 = commit->parents->item->object.sha1;
-       cgit_diff_tree(old_sha1, commit->object.sha1, fn, prefix,
+               old_sha1 = commit->parents->item->object.oid.hash;
+       cgit_diff_tree(old_sha1, commit->object.oid.hash, fn, prefix,
                       ctx.qry.ignorews);
 }