figuring out which part of the pre-commit hook causes the hook to hang
This commit is contained in:
parent
fea00637e9
commit
5624a1dc9d
1 changed files with 1 additions and 2 deletions
|
@ -1,6 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -x
|
||||
echo "pre-commit: Refreshing packwiz"
|
||||
cd src
|
||||
packwiz refresh
|
||||
|
@ -8,5 +7,5 @@ echo "pre-commit: Adding changes to git"
|
|||
git add .
|
||||
echo "pre-commit: Amending commit with refreshed files"
|
||||
PREV_COMMIT=$(git rev-parse HEAD)
|
||||
git commit --no-edit --reuse-message="$PREV_COMMIT"
|
||||
git commit --no-edit --no-verify --reuse-message="$PREV_COMMIT"
|
||||
echo "pre-commit: Done"
|
||||
|
|
Reference in a new issue