From ce561b3745d840a80b8a3591980b6650f43343ad Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 6 Apr 2026 19:34:10 +0000 Subject: [PATCH] fix: do not call _assert_forge_push_globals at source time in forge-push.sh 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 --- lib/forge-push.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/forge-push.sh b/lib/forge-push.sh index 7875b39..dba6e42 100644 --- a/lib/forge-push.sh +++ b/lib/forge-push.sh @@ -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() {