WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

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