Skip to content

feat(scripts): install-global-hooks.sh — opt-in global core.hooksPath#603

Merged
NagyVikt merged 1 commit into
mainfrom
agent/claude/add-global-hooks-installer-script-2026-05-18-12-49
May 18, 2026
Merged

feat(scripts): install-global-hooks.sh — opt-in global core.hooksPath#603
NagyVikt merged 1 commit into
mainfrom
agent/claude/add-global-hooks-installer-script-2026-05-18-12-49

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Automated by gx branch finish (PR flow).

Adds scripts/install-global-hooks.sh and a `guardex:install-global` npm
run script. Wires the four guardex hooks (pre-commit, pre-push,
post-checkout, post-merge) into ${XDG_CONFIG_HOME:-$HOME/.config}/git/hooks/
as symlinks, then sets git config --global core.hooksPath to that dir.

Opt-in by design — not postinstall — so downstream consumers on shared
machines and CI runners are not surprised by silent global git config
mutation. Idempotent and safe to re-run. Refuses to overwrite an
existing core.hooksPath that points elsewhere.

T1 lane; minimal openspec scaffold updated in
openspec/changes/agent-claude-add-global-hooks-installer-script-2026-05-18-12-49/notes.md
@NagyVikt NagyVikt merged commit d60fafa into main May 18, 2026
@NagyVikt NagyVikt deleted the agent/claude/add-global-hooks-installer-script-2026-05-18-12-49 branch May 18, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant