Unidiff1 files changed, 1 insertions, 4 deletions
|
diff --git a/cmd.c b/cmd.c index 744bf84..763a558 100644 --- a/ cmd.c+++ b/ cmd.c |
|
@@ -111,12 +111,9 @@ static void snapshot_fn(struct cgit_context *ctx) |
111 | } |
111 | } |
112 | |
112 | |
113 | static void stats_fn(struct cgit_context *ctx) |
113 | static void stats_fn(struct cgit_context *ctx) |
114 | { |
114 | { |
115 | if (ctx->repo->enable_stats) |
115 | cgit_show_stats(ctx); |
116 | cgit_show_stats(ctx); |
| |
117 | else |
| |
118 | cgit_print_error("Stats disabled for this repo"); |
| |
119 | } |
116 | } |
120 | |
117 | |
121 | static void summary_fn(struct cgit_context *ctx) |
118 | static void summary_fn(struct cgit_context *ctx) |
122 | { |
119 | { |
|