summaryrefslogtreecommitdiff
path: root/scripts/hooks/pre-push
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/hooks/pre-push')
-rw-r--r--scripts/hooks/pre-push6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/hooks/pre-push b/scripts/hooks/pre-push
new file mode 100644
index 0000000..d851332
--- /dev/null
+++ b/scripts/hooks/pre-push
@@ -0,0 +1,6 @@
+#!/bin/bash
+# pre-push — Reject pushes where tests fail.
+set -euo pipefail
+REPO_DIR="$(git rev-parse --show-toplevel)"
+echo "pre-push: running scripts/verify..."
+exec "${REPO_DIR}/scripts/verify"