figuring out which part of the pre-commit hook causes the hook to hang

This commit is contained in:
SeaswimmerTheFsh 2024-03-24 04:04:36 -04:00
parent 7da0160924
commit fea00637e9

View file

@ -1,9 +1,12 @@
#!/bin/sh #!/bin/sh
set -x
echo "pre-commit: Refreshing packwiz" echo "pre-commit: Refreshing packwiz"
cd src cd src
packwiz refresh packwiz refresh
echo "pre-commit: Adding changes to git" echo "pre-commit: Adding changes to git"
git add . git add .
#git commit --amend --no-edit echo "pre-commit: Amending commit with refreshed files"
PREV_COMMIT=$(git rev-parse HEAD)
git commit --no-edit --reuse-message="$PREV_COMMIT"
echo "pre-commit: Done" echo "pre-commit: Done"