X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/f86a23ff537258d36bf8f1876fa7a4bede6673d8..7e5c048505efe1902fb476cc2cb3160ff7df013d:/cmd.c diff --git a/cmd.c b/cmd.c index 744bf84..cf97da7 100644 --- a/cmd.c +++ b/cmd.c @@ -105,17 +105,13 @@ static void refs_fn(struct cgit_context *ctx) static void snapshot_fn(struct cgit_context *ctx) { - cgit_print_snapshot(ctx->qry.head, ctx->qry.sha1, - cgit_repobasename(ctx->repo->url), ctx->qry.path, + cgit_print_snapshot(ctx->qry.head, ctx->qry.sha1, ctx->qry.path, ctx->repo->snapshots, ctx->qry.nohead); } static void stats_fn(struct cgit_context *ctx) { - if (ctx->repo->enable_stats) - cgit_show_stats(ctx); - else - cgit_print_error("Stats disabled for this repo"); + cgit_show_stats(ctx); } static void summary_fn(struct cgit_context *ctx)