diff options
Diffstat (limited to 'ui-tree.c')
| -rw-r--r-- | ui-tree.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -274,11 +274,11 @@ static void ls_head(void) html("</tr>\n"); } -static void ls_tail(const char *readme_path) +static void ls_tail(const struct object_id *oid) { html("</table>\n"); - if (readme_path) - cgit_print_repo_readme_no_layout(readme_path); + if (oid) + cgit_print_repo_readme_no_layout(oid); cgit_print_layout_end(); } @@ -299,8 +299,7 @@ static void ls_tree(const struct object_id *oid, const char *path, struct walk_t ls_head(); read_tree_recursive(the_repository, tree, "", 0, 1, &paths, ls_item, walk_tree_ctx); - const char *readme_path = "readme.md"; - ls_tail(readme_path); + ls_tail(oid); } |
