14 lines
271 B
Plaintext
14 lines
271 B
Plaintext
|
|
#!/bin/env bash
|
||
|
|
|
||
|
|
if [ "$2" = "commit" ]; then
|
||
|
|
echo "Skipping prepare-commit-msg hook due to amend."
|
||
|
|
exit 0
|
||
|
|
fi
|
||
|
|
|
||
|
|
if [ -n "$GIT_SEQUENCE_EDITOR" ]; then
|
||
|
|
echo "Skipping prepare-commit-msg hook due to rebase."
|
||
|
|
exit 0
|
||
|
|
fi
|
||
|
|
|
||
|
|
exec < /dev/tty && pnpm exec cz --hook || true
|