Discovered while fixing the Stop-hook permission error. core.hooksPath=/home/martins/AutoBot-Ai/AutoBot-AI/.git/hooks (explicit, absolute — also violates machine portability). In that directory: pre-push is a symlink to .worktrees/issue-5142-hooks/tools/git-hooks/pre-push — the worktree is long deleted, so the symlink dangles and pre-push protection silently never runs. There is NO pre-commit file at all, so the documented protected-branch/worktree-only commit enforcement (CLAUDE_GIT.md) is not active either. Needs: an idempotent hook installer (likely from scripts/hooks/ templates) that installs real files (not worktree symlinks), plus verification that branch-guard actually blocks a main-tree commit. Related: #11581, #11593.
Discovered while fixing the Stop-hook permission error.
core.hooksPath=/home/martins/AutoBot-Ai/AutoBot-AI/.git/hooks(explicit, absolute — also violates machine portability). In that directory:pre-pushis a symlink to.worktrees/issue-5142-hooks/tools/git-hooks/pre-push— the worktree is long deleted, so the symlink dangles and pre-push protection silently never runs. There is NOpre-commitfile at all, so the documented protected-branch/worktree-only commit enforcement (CLAUDE_GIT.md) is not active either. Needs: an idempotent hook installer (likely fromscripts/hooks/templates) that installs real files (not worktree symlinks), plus verification that branch-guard actually blocks a main-tree commit. Related: #11581, #11593.