Website Summary Files Commits Branches @commit @diff @stats
path: root / cmd.c
diff options
context:
space:
mode:
Commit892c5441f4af2f53a3b1906c4d7e458829e0cf0a (patch)
Author
 John Keeping <john@keeping.me.uk>
2015-08-14 12:47:17 +0100
Committer
 Jason A. Donenfeld <Jason@zx2c4.com>
2015-08-14 15:46:51 +0200
Files5db7624970e2663ccb61cb14c4bbc6cb03024272 /cmd.c
cgit-892c5441f4af2f53a3b1906c4d7e458829e0cf0a.tar
cgit-892c5441f4af2f53a3b1906c4d7e458829e0cf0a.tar.gz
cgit-892c5441f4af2f53a3b1906c4d7e458829e0cf0a.zip
Parent6d39dd1914dd0a904c606b079e8ef0f1643f2266 (diff)
stats: move layout into page function
This also allows us to return proper HTTP error codes for invalid requests. Signed-off-by: John Keeping <john@keeping.me.uk>
1 files changed, 1 insertions, 1 deletions
-rw-r--r--cmd.c2
diff --git a/cmd.c b/cmd.c
index ce66af9..4f8e71d 100644
--- a/cmd.c
+++ b/cmd.c
@@ -169,7 +169,7 @@ struct cgit_cmd *cgit_get_cmd(void)
def_cmd(refs, 1, 0, 0, 0),
def_cmd(repolist, 0, 0, 0, 0),
def_cmd(snapshot, 1, 0, 0, 0),
- def_cmd(stats, 1, 1, 1, 0),
+ def_cmd(stats, 1, 0, 1, 0),
def_cmd(summary, 1, 1, 0, 0),
def_cmd(tag, 1, 1, 0, 0),
def_cmd(tree, 1, 1, 1, 0),