Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[QT-669] Automatically synchronize git hooks on make invocation (#25197)
Git doesn’t allow hooks to be in-repo which prevents branch specific hooks. To get around this we’ve historically copied our hooks from .hooks into .git/hooks when running make prep in vault and vault-enterprise. That sort of works but has the following issues: * If you hooks call into files in-repo and they are modified between branches you have to re-sync to resolve it * Remembering to sync the hooks is cumbersome We can’t exactly get around the first issue. It’s always possible that if you change branches and don’t update your hooks you could run into this problem if you try to commit without updating them. But we can make it less likely to fail by: * Always syncing the hooks whenever make is called * Updating the files in the hooks on all maintained branches to be consistent Signed-off-by: Ryan Cragun <me@ryan.ec>
- Loading branch information