]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
git: update to v2.44.0
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index 57d70974c50fbd0ade407d8fd46b0ee480d046b1..e61629237cac22d9de48cf3316873cd7d0f586d4 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -631,7 +631,7 @@ static int prepare_repo_cmd(int nongit)
                return 1;
        }
 
-       if (get_oid(ctx.qry.head, &oid)) {
+       if (repo_get_oid(the_repository, ctx.qry.head, &oid)) {
                char *old_head = ctx.qry.head;
                ctx.qry.head = xstrdup(ctx.repo->defbranch);
                cgit_print_error_page(404, "Not found",