abouttreesummaryrefslogcommitdiff
path: root/ui-tree.c
diff options
context:
space:
mode:
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 {