fixed infinite looping in the post-commit hook
All checks were successful
Autotagger / Autotagger (push) Successful in 5s
Build / Export Files (push) Successful in 7s
Build / Documentation (push) Successful in 20s

This commit is contained in:
SeaswimmerTheFsh 2024-03-24 21:53:27 -04:00
parent 0a81a57d48
commit e4c6fb3cec
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -5,6 +5,11 @@ cd src
packwiz refresh
echo "post-commit: Adding changes to git"
git add .
echo "post-commit: Checking for changes"
if git diff-index HEAD --; then
echo "post-commit: No changes detected, exiting"
exit 0
fi
echo "post-commit: Amending commit with refreshed files"
git commit --amend --gpg-sign --no-edit --no-verify
echo "post-commit: Done"