From 38a12c2ddde5188bbbd04501883b7092745b0dac Mon Sep 17 00:00:00 2001
From: patrick-scho
Date: Mon, 1 Dec 2025 15:27:49 +0100
Subject: changes
---
ui-blob.c | 1 +
ui-summary.c | 7 +++----
ui-summary.h | 2 +-
ui-tree.c | 13 +++++++------
4 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/ui-blob.c b/ui-blob.c
index 3267ed1..cc88d76 100644
--- a/ui-blob.c
+++ b/ui-blob.c
@@ -72,6 +72,7 @@ int cgit_print_oid(const struct object_id *oid)
unsigned long size;
type = oid_object_info(the_repository, oid, &size);
+ html_txtf("trying to print %x
", oid);
if (type == OBJ_BAD)
return -1;
buf = read_object_file(oid, &type, &size);
diff --git a/ui-summary.c b/ui-summary.c
index 76f7df6..b3e5cc6 100644
--- a/ui-summary.c
+++ b/ui-summary.c
@@ -173,8 +173,7 @@ static int get_readme_oid_cb(const struct object_id *oid, struct strbuf *base,
return 0;
}
-const struct object_id * get_readme_oid(const struct object_id *oid, char **filename) {
- struct tree *tree = parse_tree_indirect(oid);
+const struct object_id * get_readme_oid(const struct tree *tree, char **filename) {
struct pathspec paths = {
.nr = 0
};
@@ -184,10 +183,10 @@ const struct object_id * get_readme_oid(const struct object_id *oid, char **file
return ctx.oid;
}
-void cgit_print_repo_readme_no_layout(const struct object_id *oid)
+void cgit_print_repo_readme_no_layout(const struct tree *tree)
{
char *filename = NULL;
- const struct object_id *readme_oid = get_readme_oid(oid, &filename);
+ const struct object_id *readme_oid = get_readme_oid(tree, &filename);
if (readme_oid) {
html("