]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-diff.c
git: update to v2.46.0
[ps-cgit] / ui-diff.c
index 6f42dd4fc8600c682dde5b819e6885e8e0754fdc..a8245467ae4142668deb3c6335a55f5668aff375 100644 (file)
--- a/ui-diff.c
+++ b/ui-diff.c
@@ -6,6 +6,8 @@
  *   (see COPYING for full license text)
  */
 
+#define USE_THE_REPOSITORY_VARIABLE
+
 #include "cgit.h"
 #include "ui-diff.h"
 #include "html.h"
@@ -424,7 +426,7 @@ void cgit_print_diff(const char *new_rev, const char *old_rev,
        } else if (commit->parents && commit->parents->item) {
                oidcpy(old_rev_oid, &commit->parents->item->object.oid);
        } else {
-               oidclr(old_rev_oid);
+               oidclr(old_rev_oid, the_repository->hash_algo);
        }
 
        if (!is_null_oid(old_rev_oid)) {