mirror of
https://github.com/cverinc/tugtile.git
synced 2026-07-22 07:42:19 +00:00
chore: add tracked pre-push hook that runs scripts/test.sh (#4)
Completes the clikae-style local guard: a tracked hooks/pre-push (activate with `git config core.hooksPath hooks`) runs the same scripts/test.sh that CI runs, so failures surface locally before a push. Bypassable with --no-verify. Co-authored-by: cverorg <292680828+cverorg@users.noreply.github.com>
This commit is contained in:
parent
e359e34d49
commit
ade0da6e31
1 changed files with 5 additions and 0 deletions
5
hooks/pre-push
Executable file
5
hooks/pre-push
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
# Pre-push guard: run the repo's full check before any push; a failure blocks the push.
|
||||
# Tracked in-repo (not .git/hooks). Activate once with: git config core.hooksPath hooks
|
||||
# Bypass in an emergency with: git push --no-verify (CI still guards server-side).
|
||||
exec bash "$(dirname "$0")/../scripts/test.sh"
|
||||
Loading…
Reference in a new issue