Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to use init.sh as a global hook script #1526

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tlund101
Copy link

This is a simple workaround for all the users who have a global set of hooks that get clobbered by changing core.hooksPath. E.g. if I have core.hooksPath set globally to run hooks I want run on all repositories, Husky will change that location per-repo. With this change in place, I can at least create an init.sh script to read the hook that is getting executed by Husky, and run my global hook manually first, followed by any Husky hooks.

There may be a different or more robust way the team would like this done, if so feel free to reject this PR or make further suggestions.

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