add skip gptcommit

This commit is contained in:
zhixuan2333 2023-04-01 12:51:52 +00:00
parent b92a461699
commit 196988d4f8
1 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,10 @@
#!/bin/sh
### BEGIN GPTCOMMIT HOOK ###
if ! command -v prepare-commit-msg &> /dev/null
then
echo "prepare-commit-msg not found. Skiped."
exit
fi
gptcommit prepare-commit-msg --commit-msg-file "$1" --commit-source "$2" --commit-sha "$3"
### END GPTCOMMIT HOOK ###