From da81c24bbc0ec33a582d57a126969cc2bcdf0b9a Mon Sep 17 00:00:00 2001 From: Uyarn Date: Thu, 23 Jun 2022 14:37:16 +0800 Subject: [PATCH] chore: prepare-commit-msg bypass windows --- .husky/prepare-commit-msg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.husky/prepare-commit-msg b/.husky/prepare-commit-msg index 6ad929f..6720567 100755 --- a/.husky/prepare-commit-msg +++ b/.husky/prepare-commit-msg @@ -1,4 +1,6 @@ #!/bin/sh +[[ "$(uname -a)" = *"MINGW64"* ]] && exit 0 +[ -n "$CI" ] && exit 0 . "$(dirname "$0")/_/husky.sh" -#exec < /dev/tty && npx git-cz --hook || true +exec < /dev/tty && npx git-cz --hook || true \ No newline at end of file