From 9fb481dad91c59700a59a83a16e1ff4302f8c6f1 Mon Sep 17 00:00:00 2001 From: ReachableCEO Date: Wed, 10 Sep 2025 16:51:51 -0500 Subject: [PATCH] fix(hooks): prevent git pre-push stdin from executing in CI container\n\n- Redirect stdin to /dev/null for docker compose run in scripts/ci\n- Fixes errors like 'bash: refs/tags/: No such file or directory'\n --- scripts/ci | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/ci b/scripts/ci index 5c55b36..1f64ec1 100755 --- a/scripts/ci +++ b/scripts/ci @@ -29,9 +29,11 @@ run_outside_container() { exit 1 fi # Build ci image if needed and run the requested phase inside the container + # Important: detach stdin so git hook-provided stdin (ref updates) + # doesn't get executed inside the container shell. (cd "$root" && docker compose -f docker/ci.compose.yml run --rm \ -e IN_CI_CONTAINER=1 \ - ci bash -lc "cd /workspace && scripts/ci --inside ${phase}") + ci bash -lc "cd /workspace && scripts/ci --inside ${phase}"