Unidiff1 files changed, 9 insertions, 0 deletions
|
diff --git a/cmd.c b/cmd.c index e0eacbe..6cc91e6 100644 --- a/ cmd.c+++ b/ cmd.c |
|
@@ -22,2 +22,10 @@ |
22 | |
22 | |
| |
23 | static void about_fn(struct cgit_context *ctx) |
| |
24 | { |
| |
25 | if (ctx->repo) |
| |
26 | cgit_print_repo_readme(); |
| |
27 | else |
| |
28 | cgit_print_site_readme(); |
| |
29 | } |
| |
30 | |
23 | static void blob_fn(struct cgit_context *ctx) |
31 | static void blob_fn(struct cgit_context *ctx) |
@@ -86,2 +94,3 @@ struct cgit_cmd *cgit_get_cmd(struct cgit_context *ctx) |
86 | static struct cgit_cmd cmds[] = { |
94 | static struct cgit_cmd cmds[] = { |
| |
95 | def_cmd(about, 0, 1), |
87 | def_cmd(blob, 1, 0), |
96 | def_cmd(blob, 1, 0), |
|