From 267940e52db87569f0289307d4b8722a116aa308 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sun, 24 Jul 2022 21:47:16 +0200 Subject: Fixed git articles --- content/docs/adyxax.org/git/gitolite.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'content/docs') diff --git a/content/docs/adyxax.org/git/gitolite.md b/content/docs/adyxax.org/git/gitolite.md index a9aba2e..89fe6ef 100644 --- a/content/docs/adyxax.org/git/gitolite.md +++ b/content/docs/adyxax.org/git/gitolite.md @@ -56,12 +56,20 @@ In order to customize the cgit frontend, I needed to allow some git configuratio GIT_CONFIG_KEYS => 'cgit.desc cgit.extra-head-content cgit.homepage cgit.hide cgit.ignore cgit.owner cgit.section', ``` -These keys allow me to specify repositories like this: +Sadly, the html meta tag we need to add contains `<` and `>` characters, which can have a special meaning in regular expressions. Because of that these characters are banned from values by gitolite, but we have a workaround if we add the following bellow our `GIT_CONFIG_KEYS` line: +```perl +SAFE_CONFIG => { + LT => '<', + GT => '>', +}, +``` + +Thanks to this translation table, we can now specify a go repository like this: ```perl repo adyxax/bareos-zabbix-check RW+ = adyxax config cgit.desc = A Zabbix check for bareos backups - config cgit.extra-head-content= + config cgit.extra-head-content = %LTmeta name='go-import' content='git.adyxax.org/adyxax/bareos-zabbix-check git https://git.adyxax.org/adyxax/bareos-zabbix-check'/%GT config cgit.owner = Julien Dessaux config cgit.section = Active ``` -- cgit v1.2.3