diff --git a/.husky/prepare-commit-msg b/.husky/prepare-commit-msg index c19c821..2c9d9b3 100755 --- a/.husky/prepare-commit-msg +++ b/.husky/prepare-commit-msg @@ -1,4 +1,14 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" +if [ "$2" = "message" ]; then + echo "Skipping prepare-commit-msg hook due to message." + exit 0 +fi + +if [ "$2" = "commit" ]; then + echo "Skipping prepare-commit-msg hook due to amend." + exit 0 +fi + exec -