X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/6edc84bc44d55d7f90a40238ae2107913e15f54b..559ab5ecc4445c8477ecf62c9fc97efa412dd562:/ui-patch.c diff --git a/ui-patch.c b/ui-patch.c index 430231e..4c051e8 100644 --- a/ui-patch.c +++ b/ui-patch.c @@ -48,7 +48,7 @@ void cgit_print_patch(const char *new_rev, const char *old_rev, return; } } else if (commit->parents && commit->parents->item) { - hashcpy(old_rev_sha1, commit->parents->item->object.sha1); + hashcpy(old_rev_sha1, commit->parents->item->object.oid.hash); } else { hashclr(old_rev_sha1); }