]> gitweb.ps.run Git - ps-cgit/blobdiff - cmd.c
Merge branch 'stable'
[ps-cgit] / cmd.c
diff --git a/cmd.c b/cmd.c
index 744bf84db246c7f7e4090bde978a62a94e0a1ce2..766f90397b89d2407574f3e2bf7056df68b43add 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -39,7 +39,7 @@ static void atom_fn(struct cgit_context *ctx)
 static void about_fn(struct cgit_context *ctx)
 {
        if (ctx->repo)
-               cgit_print_repo_readme();
+               cgit_print_repo_readme(ctx->qry.path);
        else
                cgit_print_site_readme();
 }
@@ -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)