fix: push via internal Gitea URL to bypass Caddy 502 on git-receive-pack
This commit is contained in:
@@ -43,7 +43,7 @@ fi
|
|||||||
echo "==> Committing and pushing to Gitea..."
|
echo "==> Committing and pushing to Gitea..."
|
||||||
git -C "$REPO_DIR" add -A
|
git -C "$REPO_DIR" add -A
|
||||||
git -C "$REPO_DIR" commit -m "$COMMIT_MSG" 2>/dev/null || echo " (nothing new to commit)"
|
git -C "$REPO_DIR" commit -m "$COMMIT_MSG" 2>/dev/null || echo " (nothing new to commit)"
|
||||||
git -C "$REPO_DIR" remote set-url origin "https://$GITEA_USER:$GITEA_TOKEN@gitea.jgitta.com/jgitta/senior-kiosk.git"
|
git -C "$REPO_DIR" remote set-url origin "http://$GITEA_USER:$GITEA_TOKEN@192.168.88.27:3002/jgitta/senior-kiosk.git"
|
||||||
git -C "$REPO_DIR" push origin master || echo " (push failed — check network)"
|
git -C "$REPO_DIR" push origin master || echo " (push failed — check network)"
|
||||||
|
|
||||||
echo "==> Restarting kiosk-dev..."
|
echo "==> Restarting kiosk-dev..."
|
||||||
|
|||||||
Reference in New Issue
Block a user