From b158ff27c25efa02ad2a6948a923186a99c6a429 Mon Sep 17 00:00:00 2001 From: mayor Date: Wed, 21 Jan 2026 23:07:44 -0800 Subject: [PATCH] fix(hooks): allow tag pushes in pre-push hook Tags are used for releases and shouldn't be blocked by the branch restriction that prevents feature branch pushes. Co-Authored-By: Claude Opus 4.5 --- .githooks/pre-push | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.githooks/pre-push b/.githooks/pre-push index 9002cbe9..d7153084 100755 --- a/.githooks/pre-push +++ b/.githooks/pre-push @@ -8,6 +8,11 @@ # polecat/* - Polecat working branches (Refinery merges these) while read local_ref local_sha remote_ref remote_sha; do + # Skip tags - they're allowed for releases + if [[ "$remote_ref" == refs/tags/* ]]; then + continue + fi + branch="${remote_ref#refs/heads/}" case "$branch" in