From 4159e046c23529d8b4aea7118916e4559a2732da Mon Sep 17 00:00:00 2001 From: Dario Garcia Date: Sun, 15 Nov 2026 11:11:51 -0300 Subject: [PATCH] refactor: shrink pre-commit hook to the gate itself --- .githooks/pre-commit | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/.githooks/pre-commit b/.githooks/pre-commit index b44bef6..76fc575 100644 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -1,19 +1,3 @@ #!/bin/sh -# -# Runs the full gate before every commit. Enable it once per clone with: -# git config core.hooksPath .githooks -# -# Skip it for a single commit with: -# git commit --no-verify - -set -e - -echo "pre-commit: running composer check..." - -if ! composer check; then - echo "" - echo "pre-commit: composer check failed. Fix it, or use 'git commit --no-verify' to bypass." >&2 - exit 1 -fi - -echo "pre-commit: gate passed." +# Enable once per clone: git config core.hooksPath .githooks +composer check \ No newline at end of file