summaryrefslogtreecommitdiff
path: root/.husky
diff options
context:
space:
mode:
Diffstat (limited to '.husky')
-rwxr-xr-x.husky/prepare-commit-msg4
1 files changed, 3 insertions, 1 deletions
diff --git a/.husky/prepare-commit-msg b/.husky/prepare-commit-msg
index 593dfa88b..617400ae5 100755
--- a/.husky/prepare-commit-msg
+++ b/.husky/prepare-commit-msg
@@ -3,4 +3,6 @@
# shellcheck source=./_/husky.sh
. "$(dirname "$0")/_/husky.sh"
-"$(dirname "$0")/prepare-commit-msg.cz" "$@"
+if ! git config --get tf-a.disableCommitizen > /dev/null; then
+ "$(dirname "$0")/prepare-commit-msg.cz" "$@"
+fi