[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#58989] [PATCH] services: gitolite: Add local-code configuration opt
From: |
Christopher Baines |
Subject: |
[bug#58989] [PATCH] services: gitolite: Add local-code configuration option. |
Date: |
Sun, 06 Nov 2022 15:03:38 +0100 |
User-agent: |
mu4e 1.8.9; emacs 28.1 |
Alexey Abramov via Guix-patches via <guix-patches@gnu.org> writes:
> (match file
> - (($ <gitolite-rc-file> umask unsafe-pattern git-config-keys roles enable)
> + (($ <gitolite-rc-file> umask local-code unsafe-pattern git-config-keys
> roles enable)
> (apply text-file* "gitolite.rc"
> `("%RC = (\n"
> " UMASK => " ,(format #f "~4,'0o" umask) ",\n"
> " GIT_CONFIG_KEYS => '" ,git-config-keys "',\n"
> + ,(if local-code
> + (simple-format #f " LOCAL_CODE => \"~A\",\n" local-code))
> " ROLES => {\n"
> ,@(map (match-lambda
> ((role . value)
This generally looks good, but I believe the above will break if
local-code is #f.
signature.asc
Description: PGP signature