From fea00637e9ff00c326a471fb1c27891d5ad6d48a Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 24 Mar 2024 04:04:36 -0400 Subject: [PATCH] figuring out which part of the pre-commit hook causes the hook to hang --- scripts/hooks/pre-commit | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/hooks/pre-commit b/scripts/hooks/pre-commit index de52350..a557dbb 100755 --- a/scripts/hooks/pre-commit +++ b/scripts/hooks/pre-commit @@ -1,9 +1,12 @@ #!/bin/sh +set -x echo "pre-commit: Refreshing packwiz" cd src packwiz refresh echo "pre-commit: Adding changes to git" 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"