From 9c70c0bfdb71b39f6bae6e0c77bbe40b22d64ff5 Mon Sep 17 00:00:00 2001 From: John Keeping Date: Fri, 14 Aug 2015 12:47:20 +0100 Subject: tree: move layout into page function This also allows us to return proper HTTP error codes when the requested tree is not found and display an error message in one case (invalid path inside valid commit) where we previously just displayed an empty page. Signed-off-by: John Keeping --- cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd.c') diff --git a/cmd.c b/cmd.c index 54961d9..3c90d0b 100644 --- a/cmd.c +++ b/cmd.c @@ -172,7 +172,7 @@ struct cgit_cmd *cgit_get_cmd(void) def_cmd(stats, 1, 0, 1, 0), def_cmd(summary, 1, 0, 0, 0), def_cmd(tag, 1, 0, 0, 0), - def_cmd(tree, 1, 1, 1, 0), + def_cmd(tree, 1, 0, 1, 0), }; int i; -- cgit v1.2.3-70-g09d2