made the pre-commit hook a post-commit hook
This commit is contained in:
parent
d6492cd3cf
commit
17fbcfe654
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
Reference in a new issue