diff options
author | Florian Pritz <bluewind@xinu.at> | 2020-03-14 08:55:46 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2020-03-14 08:55:46 +0100 |
commit | 2cbdd90e0f8575eda6486b4bb06521d848eaa307 (patch) | |
tree | fc28a97fede3b74ae2cb2e778ffd4c0ae59c637b /ui-diff.c | |
parent | 6c66430e9658616e118d10af9c9ab48858a04e67 (diff) | |
parent | 55fa25adb097d2681607d8b0f51a0c393cc9af1a (diff) | |
download | cgit-2cbdd90e0f8575eda6486b4bb06521d848eaa307.tar.gz cgit-2cbdd90e0f8575eda6486b4bb06521d848eaa307.tar.xz |
Merge branch 'master' of https://git.zx2c4.com/cgit into local
Diffstat (limited to 'ui-diff.c')
-rw-r--r-- | ui-diff.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -413,7 +413,7 @@ void cgit_print_diff(const char *new_rev, const char *old_rev, "Bad commit: %s", oid_to_hex(new_rev_oid)); return; } - new_tree_oid = &commit->maybe_tree->object.oid; + new_tree_oid = get_commit_tree_oid(commit); if (old_rev) { if (get_oid(old_rev, old_rev_oid)) { @@ -434,7 +434,7 @@ void cgit_print_diff(const char *new_rev, const char *old_rev, "Bad commit: %s", oid_to_hex(old_rev_oid)); return; } - old_tree_oid = &commit2->maybe_tree->object.oid; + old_tree_oid = get_commit_tree_oid(commit2); } else { old_tree_oid = NULL; } |