Gitea remote URL is ephemeral (bore.pub port changes each session) — add push-to-gitea.sh helper #17
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The
gitearemote saved in this repo points tohttp://replit:...@bore.pub:9523/replit/token-gated-economy.git. The port9523is assigned by bore at tunnel creation time and changes every session. Anygit push giteaafter a new bore tunnel is opened will fail with a connection error.Currently the workaround is manual: start bore, note the new port, run
git remote set-url gitea http://replit:...@bore.pub:<NEW_PORT>/..., then push. This is error-prone and easy to forget.Requirements
scripts/push-to-gitea.shthat:a. Detects the current bore port by querying
bore.pubor inspecting the running bore process (pgrep -f bore+ parse args)b. If no bore process is found, prints instructions to start one and exits with a clear error
c. Updates
git remote set-url giteawith the detected portd. Runs
git push gitea HEAD:maine. Prints the Gitea web URL of the pushed branch on success
AGENTS.md(once created — see quality gates issue) that all pushes to Gitea go throughbash scripts/push-to-gitea.shAcceptance Criteria
bash scripts/push-to-gitea.shwith an active bore tunnel pushes to the correct Gitea URL without manual port lookupbash scripts/push-to-gitea.shwith no bore tunnel running prints a clear error:No bore tunnel detected. Start with: bore local 5000 --to bore.puband exits with code 1git remote get-url giteareflects the current bore portFiles
scripts/push-to-gitea.sh(new)AGENTS.md(reference, once created)Resolved: replaced ephemeral bore.pub port with permanent Tailscale Funnel (
https://mm.tailb74b2d.ts.net).GITEA_URLsaved as shared env var.scripts/push-to-gitea.shrewritten — no more port juggling.