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 <noreply@anthropic.com>
This commit is contained in:
mayor
2026-01-21 23:07:44 -08:00
committed by beads/crew/emma
parent 5cc2995345
commit b158ff27c2

View File

@@ -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