aboutsummaryrefslogtreecommitdiffstats
path: root/cmd.c
diff options
context:
space:
mode:
authorJohn Keeping2015-08-14 12:47:20 +0100
committerJason A. Donenfeld2015-08-14 15:46:51 +0200
commit9c70c0bfdb71b39f6bae6e0c77bbe40b22d64ff5 (patch)
tree58bdde199abc58de3adde3d24ea47acd93bd577a /cmd.c
parent696a33b66f8638d5c3e0464d66760c6d60ff24a5 (diff)
downloadcgit-9c70c0bfdb71b39f6bae6e0c77bbe40b22d64ff5.tar.gz
cgit-9c70c0bfdb71b39f6bae6e0c77bbe40b22d64ff5.tar.bz2
cgit-9c70c0bfdb71b39f6bae6e0c77bbe40b22d64ff5.zip
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 <john@keeping.me.uk>
Diffstat (limited to 'cmd.c')
-rw-r--r--cmd.c2
1 files changed, 1 insertions, 1 deletions
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)
172 def_cmd(stats, 1, 0, 1, 0), 172 def_cmd(stats, 1, 0, 1, 0),
173 def_cmd(summary, 1, 0, 0, 0), 173 def_cmd(summary, 1, 0, 0, 0),
174 def_cmd(tag, 1, 0, 0, 0), 174 def_cmd(tag, 1, 0, 0, 0),
175 def_cmd(tree, 1, 1, 1, 0), 175 def_cmd(tree, 1, 0, 1, 0),
176 }; 176 };
177 int i; 177 int i;
178 178