From 76109755f12f9dce39e4e1b62a81f68fd7efadac Mon Sep 17 00:00:00 2001 From: pelikhan Date: Wed, 4 Sep 2024 05:07:00 -0700 Subject: [PATCH] Update commit-msg hook to run only if commit message is not empty --- .husky/commit-msg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index a179762bd6..667ed53a33 100644 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1 +1,3 @@ -node packages/cli/built/genaiscript.cjs run commit-msg $1 +if [ -s "$1" ]; then + node packages/cli/built/genaiscript.cjs run commit-msg "$1" +fi