updated git hook
This commit is contained in:
parent
5624a1dc9d
commit
5f8bc701be
1 changed files with 3 additions and 2 deletions
|
@ -6,6 +6,7 @@ packwiz refresh
|
||||||
echo "pre-commit: Adding changes to git"
|
echo "pre-commit: Adding changes to git"
|
||||||
git add .
|
git add .
|
||||||
echo "pre-commit: Amending commit with refreshed files"
|
echo "pre-commit: Amending commit with refreshed files"
|
||||||
PREV_COMMIT=$(git rev-parse HEAD)
|
PREV_COMMIT=$(git log -1 --pretty=%B)
|
||||||
git commit --no-edit --no-verify --reuse-message="$PREV_COMMIT"
|
git commit --amend --no-edit --no-verify --reuse-message="$PREV_COMMIT"
|
||||||
echo "pre-commit: Done"
|
echo "pre-commit: Done"
|
||||||
|
exit 0
|
||||||
|
|
Reference in a new issue