We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3edc6a8 commit 330ee87Copy full SHA for 330ee87
.git-hooks/prepare-commit-msg
@@ -3,6 +3,11 @@
3
# Fail on error and unset variables
4
set -eu
5
6
+# Allow skipping the hook by setting KETTLE_PRECOMMIT_HOOK=false
7
+if [ "${KETTLE_PRECOMMIT_HOOK:-true}" = "false" ]; then
8
+ exit 0
9
+fi
10
+
11
# We are not using direnv exec here because mise and direnv can result in conflicting PATH settings:
12
# See: https://mise.jdx.dev/direnv.html
13
exec "kettle-commit-msg" "$@"
0 commit comments