]> gitweb.ps.run Git - ps-cgit/blobdiff - cmd.c
syntax-highlighting.sh: Fix command injection.
[ps-cgit] / cmd.c
diff --git a/cmd.c b/cmd.c
index d114eb3fd6dc46a49d2180304b394e3423a430a7..899e913b30967d4b4e1d3aa8a770dae148ab60ce 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -56,7 +56,7 @@ static void commit_fn(struct cgit_context *ctx)
 
 static void diff_fn(struct cgit_context *ctx)
 {
-       cgit_print_diff(ctx->qry.sha1, ctx->qry.sha2, ctx->qry.path);
+       cgit_print_diff(ctx->qry.sha1, ctx->qry.sha2, ctx->qry.path, 1);
 }
 
 static void info_fn(struct cgit_context *ctx)
@@ -68,7 +68,8 @@ static void log_fn(struct cgit_context *ctx)
 {
        cgit_print_log(ctx->qry.sha1, ctx->qry.ofs, ctx->cfg.max_commit_count,
                       ctx->qry.grep, ctx->qry.search, ctx->qry.path, 1,
-                      ctx->repo->enable_commit_graph);
+                      ctx->repo->enable_commit_graph,
+                      ctx->repo->commit_sort);
 }
 
 static void ls_cache_fn(struct cgit_context *ctx)