Commit Diff
--- gotwebd/pages.tmpl +++ gotwebd/pages.tmpl @@ -687,7 +687,8 @@ nextsep(char *s, char **t) <table id="tree"> {{ render got_output_repo_tree(c, &readme, gotweb_render_tree_item) }} </table> - {{ if readme }} + {!/* a commit id is *required* */!} + {{ if readme && t->qs->commit }} {! /* sigh... */ t->qs->file = readme;