MatthewDolan/template-go

Investigate local git hooks

Opened this issue · 1 comments

Investigate whether it’s possible to check in a git-hooks folder that can be loaded automatically when performing git operations on this repo.

Initially looking around, it doesn’t seem easy. It appears that git hooks are global or set on the repo locally but not checked in. This would need something that’s local to this repo and checked in.

I couldn't find any easy way to implement this. This isn't built into git itselt. There are some hacks with running a command which symlinks the hooks, but it wasn't trivial to add this.