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:
@@ -8,6 +8,11 @@
|
|||||||
# polecat/* - Polecat working branches (Refinery merges these)
|
# polecat/* - Polecat working branches (Refinery merges these)
|
||||||
|
|
||||||
while read local_ref local_sha remote_ref remote_sha; do
|
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/}"
|
branch="${remote_ref#refs/heads/}"
|
||||||
|
|
||||||
case "$branch" in
|
case "$branch" in
|
||||||
|
|||||||
Reference in New Issue
Block a user