feat(raw-commit): introduce GENOME_PUSH_URL test seam
This commit is contained in:
parent
4f9fbdec8b
commit
bf657c3708
1 changed files with 2 additions and 1 deletions
|
|
@ -28,7 +28,8 @@ set -a; . "${HOME}/.config/knowledge-genome.env"; set +a
|
||||||
vault="${GENOME_VAULTS_ROOT}/${genome}"
|
vault="${GENOME_VAULTS_ROOT}/${genome}"
|
||||||
fid="${genome}-public"
|
fid="${genome}-public"
|
||||||
authors_map="${GENOME_VAULTS_ROOT}/.authors.json"
|
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
|
export GIT_ASKPASS=/usr/local/bin/genome-askpass
|
||||||
|
|
||||||
[[ -d "${vault}/.git" ]] || { printf '{"status":"error","reason":"vault absent","genome":"%s"}\n' "$genome"; exit 1; }
|
[[ -d "${vault}/.git" ]] || { printf '{"status":"error","reason":"vault absent","genome":"%s"}\n' "$genome"; exit 1; }
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue