Make Tower deploy remote explicit
GeoIntel release gates / Compile, test, contracts and builds (push) Canceled after 0s
GeoIntel release gates / Python and npm vulnerability policy (push) Canceled after 0s
GeoIntel release gates / GIS image, SBOM and container scan (push) Canceled after 0s

This commit is contained in:
Jens
2026-07-28 07:23:37 +02:00
parent 438f10fb4b
commit 42da5b2c7f
3 changed files with 11 additions and 1 deletions
+5 -1
View File
@@ -28,7 +28,11 @@ if [ ! -d .git ]; then
git remote add origin "$REMOTE_REPO"
fi
git remote get-url origin >/dev/null 2>&1 || git remote add origin "$REMOTE_REPO"
if git remote get-url origin >/dev/null 2>&1; then
git remote set-url origin "$REMOTE_REPO"
else
git remote add origin "$REMOTE_REPO"
fi
git fetch origin "$REMOTE_BRANCH"
git reset --hard "origin/$REMOTE_BRANCH"
git branch -M "$REMOTE_BRANCH"