fix: do not call _assert_forge_push_globals at source time in forge-push.sh
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/pr/smoke-init Pipeline was successful

Globals are not set when lib/forge-push.sh is sourced at bin/disinto
startup. Match the pattern in forge-setup.sh: define the assertion
helper but do not invoke it at module load time.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Claude 2026-04-06 19:34:10 +00:00
parent 7574bb7b3b
commit ce561b3745

View file

@ -16,6 +16,7 @@
# =============================================================================
set -euo pipefail
# Assert required globals are set before using this module.
_assert_forge_push_globals() {
local missing=()
[ -z "${FORGE_URL:-}" ] && missing+=("FORGE_URL")
@ -27,7 +28,6 @@ _assert_forge_push_globals() {
exit 1
fi
}
_assert_forge_push_globals
# Push local clone to the Forgejo remote.
push_to_forge() {