aboutsummaryrefslogtreecommitdiff
path: root/.husky/prepare-commit-msg
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-01 11:28:03 +0000
committerFuwn <[email protected]>2021-05-01 11:28:03 +0000
commit18c291ce037431b3943bc8ed3b34d7b873f28d42 (patch)
tree2a7712e218b13ab07cd2a7357e27176ceb0128fb /.husky/prepare-commit-msg
parentbuild(nix): add niv as a build input (diff)
downloadwhirl-18c291ce037431b3943bc8ed3b34d7b873f28d42.tar.xz
whirl-18c291ce037431b3943bc8ed3b34d7b873f28d42.zip
chore(git): add prepare-commit-hook for commitizen
Diffstat (limited to '.husky/prepare-commit-msg')
-rw-r--r--.husky/prepare-commit-msg4
1 files changed, 4 insertions, 0 deletions
diff --git a/.husky/prepare-commit-msg b/.husky/prepare-commit-msg
new file mode 100644
index 0000000..5c18e4b
--- /dev/null
+++ b/.husky/prepare-commit-msg
@@ -0,0 +1,4 @@
+#!/bin/sh
+. "$(dirname "$0")/_/husky.sh"
+
+exec < /dev/tty && node_modules/.bin/cz --hook || true