figuring out which part of the pre-commit hook causes the hook to hang
This commit is contained in:
parent
7da0160924
commit
fea00637e9
1 changed files with 4 additions and 1 deletions
|
@ -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"
|
||||
|
|
Reference in a new issue