abouttreesummaryrefslogcommitdiff
path: root/ui-tree.c
diff options
context:
space:
mode:
authorpatrick-scho2025-12-01 01:36:10 +0100
committerpatrick-scho2025-12-01 01:36:10 +0100
commitc448775d5bb132bc06d4ef97599fe5f4b88ca5dd (patch)
treea64ad60473d4c5ce3c7abdac4698eefc5d330f0f /ui-tree.c
parent8c2f6fb4cde13dc193b1c0c49f58bdb2b1accf0e (diff)
downloadps-cgit-c448775d5bb132bc06d4ef97599fe5f4b88ca5dd.tar.gz
ps-cgit-c448775d5bb132bc06d4ef97599fe5f4b88ca5dd.zip
only print readme after tree on base path
Diffstat (limited to 'ui-tree.c')
-rw-r--r--ui-tree.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ui-tree.c b/ui-tree.c
index cc09f87..685503d 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -382,13 +382,10 @@ void cgit_print_tree(const char *rev, char *path)
repo_get_commit_tree(the_repository, commit),
"", 0, 0,
&paths, walk_tree, &walk_tree_ctx);
- const char *readme_path = "readme.md"; // TODO: add more readme options
if (walk_tree_ctx.state == 1) {
- ls_tail(readme_path);
+ ls_tail(NULL);
}
else if (walk_tree_ctx.state == 2) {
- if (readme_path)
- cgit_print_repo_readme_no_layout(readme_path);
cgit_print_layout_end();
}
else {