On Tue, 23 Jul 2024 at 00:03:56 +0100, Simon McVittie wrote:
> what is the recommended
> way to configure the 'gitdaemon' user to tell it to trust repositories
> below /var/lib/git?
What I ended up doing in ikiwiki-hosting was to add this to its systemd
service:
Environment=GIT_CONFIG_COUNT=1
Environment=GIT_CONFIG_KEY_0=safe.directory
Environment=GIT_CONFIG_VALUE_0=*
and add some similar 'export' in the LSB init script. That seems like
something that git-daemon-run and git-daemon-sysvinit could also do,
if desired, but I'd still like to know whether there is a better thing
that similar uses of git-daemon should be doing.
Thanks,
smcv