Skip to content

Commit 330ee87

Browse files
committed
🔨 Allow skip prepare-commit-msg
1 parent 3edc6a8 commit 330ee87

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.git-hooks/prepare-commit-msg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
# Fail on error and unset variables
44
set -eu
55

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+
611
# We are not using direnv exec here because mise and direnv can result in conflicting PATH settings:
712
# See: https://mise.jdx.dev/direnv.html
813
exec "kettle-commit-msg" "$@"

0 commit comments

Comments
 (0)