made the pre-commit hook a post-commit hook
All checks were successful
Autotagger / Autotagger (push) Successful in 6s
Build / Export Files (push) Successful in 7s
Build / Documentation (push) Successful in 18s

This commit is contained in:
SeaswimmerTheFsh 2024-03-24 04:31:23 -04:00
parent d6492cd3cf
commit 17fbcfe654
Signed by: cswimr
GPG key ID: B8953EC01E5C4063
3 changed files with 3 additions and 3 deletions

View file

@ -54,7 +54,7 @@ function Symlink {
} }
# Create symlink for pre-commit hook # Create symlink for pre-commit hook
New-Item -ItemType SymbolicLink -Path "$gitHooksDir\pre-commit" -Target "$rootDir\scripts\hooks\pre-commit" -Force New-Item -ItemType SymbolicLink -Path "$gitHooksDir\post-commit" -Target "$rootDir\scripts\hooks\post-commit" -Force
} }
Install-Packwiz Install-Packwiz

View file

@ -26,7 +26,7 @@ create_symlink() {
fi fi
# Create symlink for pre-commit hook # Create symlink for pre-commit hook
ln -s "$(pwd)/scripts/hooks/pre-commit" "$(pwd)/.git/hooks/pre-commit" ln -s "$(pwd)/scripts/hooks/post-commit" "$(pwd)/.git/hooks/post-commit"
# Verify symlink creation # Verify symlink creation
ls -l .git/hooks/pre-commit ls -l .git/hooks/pre-commit

View file

@ -6,6 +6,6 @@ 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"
git commit --amend --no-edit --no-verify git commit --amend --gpg-sign --no-edit --no-verify
echo "pre-commit: Done" echo "pre-commit: Done"
exit 0 exit 0