[prev in list] [next in list] [prev in thread] [next in thread]
List: cgit
Subject: [PATCH] expand environmentvariables in root-title and root-descr
From: b.laessig () pengutronix ! de
Date: 2018-04-12 9:19:12
Message-ID: 20180412091912.11486-1-b.laessig () pengutronix ! de
[Download RAW message or body]
From: Björn Lässig <b.laessig@pengutronix.de>
For having personanlized cgit configuration i need to use
root-desc=$REMOTE_USER@$HTTP_HOST
---
cgit.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cgit.c b/cgit.c
index bd9cb3f..1d7d67e 100644
--- a/cgit.c
+++ b/cgit.c
@@ -120,9 +120,9 @@ static void config_cb(const char *name, const char *value)
else if (!strcmp(name, "readme"))
string_list_append(&ctx.cfg.readme, xstrdup(value));
else if (!strcmp(name, "root-title"))
- ctx.cfg.root_title = xstrdup(value);
+ ctx.cfg.root_title = xstrdup(expand_macros(value));
else if (!strcmp(name, "root-desc"))
- ctx.cfg.root_desc = xstrdup(value);
+ ctx.cfg.root_desc = xstrdup(expand_macros(value));
else if (!strcmp(name, "root-readme"))
ctx.cfg.root_readme = xstrdup(value);
else if (!strcmp(name, "css"))
--
2.11.0
_______________________________________________
CGit mailing list
CGit@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/cgit
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic