#!/bin/sh # The gate, wired as a real hook (audit medium finding: it did not self-install). # Runs the exact CI pipeline; refuses the push on any failure. set -e cd "$(git rev-parse --show-toplevel)" make check echo "pre-push gate passed — safe to push"