From bf657c3708291ef756862b08e0e8eb7a313021c1 Mon Sep 17 00:00:00 2001 From: Matteo Cherubini Date: Wed, 1 Jul 2026 19:56:41 +0200 Subject: [PATCH] feat(raw-commit): introduce GENOME_PUSH_URL test seam --- deploy/nexus/genome-raw-commit.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy/nexus/genome-raw-commit.sh b/deploy/nexus/genome-raw-commit.sh index dae028e..f7dfa24 100644 --- a/deploy/nexus/genome-raw-commit.sh +++ b/deploy/nexus/genome-raw-commit.sh @@ -28,7 +28,8 @@ set -a; . "${HOME}/.config/knowledge-genome.env"; set +a vault="${GENOME_VAULTS_ROOT}/${genome}" fid="${genome}-public" authors_map="${GENOME_VAULTS_ROOT}/.authors.json" -clone_url="http://${FORGEJO_USER}@${FORGEJO_HOST}/${FORGEJO_OWNER}/${genome}.git" +# GENOME_PUSH_URL is a test seam: defaults to the Forgejo loopback URL in production. +clone_url="${GENOME_PUSH_URL:-http://${FORGEJO_USER}@${FORGEJO_HOST}/${FORGEJO_OWNER}/${genome}.git}" export GIT_ASKPASS=/usr/local/bin/genome-askpass [[ -d "${vault}/.git" ]] || { printf '{"status":"error","reason":"vault absent","genome":"%s"}\n' "$genome"; exit 1; }