]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-commit.c
git: update to v2.46.0
[ps-cgit] / ui-commit.c
index 078723756a6197051d8dffa3bab8d19b85a6e8f7..972e9bc40ab083b2eacba00e9c05116562b02110 100644 (file)
@@ -6,6 +6,8 @@
  *   (see COPYING for full license text)
  */
 
+#define USE_THE_REPOSITORY_VARIABLE
+
 #include "cgit.h"
 #include "ui-commit.h"
 #include "html.h"
@@ -26,7 +28,7 @@ void cgit_print_commit(char *hex, const char *prefix)
        if (!hex)
                hex = ctx.qry.head;
 
-       if (get_oid(hex, &oid)) {
+       if (repo_get_oid(the_repository, hex, &oid)) {
                cgit_print_error_page(400, "Bad request",
                                "Bad object id: %s", hex);
                return;