sbt-git-hooks
sbt-git-hooks copied to clipboard
SBT Auto Plugin to manage client side git hooks
I am aware the repo is old but it is the first result for `sbt git hooks` in google so I think this improvement is worth merging. Automatic hooks directory...
Allow to rename the default hook directory name from `git-hooks` to `.githooks` or make `.githooks` as default for the sake for convention.
Changes to `build.sbt` to invoke `writeHooks` on `sbt` load instead of having to invoke it manually on every new change to custom git hooks!
https://github.com/randomcoder/sbt-git-hooks/blob/f824621547f987a3a383f37d414ba1434ddcbc99/src/main/scala/uk/co/randomcoding/sbt/GitHooks.scala#L42 This will fail if the repo is a [worktree](https://git-scm.com/docs/git-worktree), in which case `.git` is a file and hooks are stored in a bare repository. To find that bare repository...