Update download.nix

This commit is contained in:
Anaïs Saraiva
2026-08-25 15:28:57 +02:00
parent 47cd18e8c6
commit f4c8f89018
+7
View File
@@ -200,6 +200,13 @@ in
script = '' script = ''
set -euo pipefail set -euo pipefail
# The service runs as root but the checkout is owned by another user;
# allow git to operate on it without a persistent global config.
export GIT_CONFIG_COUNT=1
export GIT_CONFIG_KEY_0=safe.directory
export GIT_CONFIG_VALUE_0="${cfg.workingDir}"
if [ ! -d "${cfg.workingDir}/.git" ]; then if [ ! -d "${cfg.workingDir}/.git" ]; then
git clone ${cfg.repoUrl} ${cfg.workingDir} git clone ${cfg.repoUrl} ${cfg.workingDir}
else else