This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
GalacticFactory-Legacy/scripts/hooks/post-commit

11 lines
266 B
Bash
Executable file

#!/bin/sh
echo "post-commit: Refreshing packwiz"
cd src
packwiz refresh
echo "post-commit: Adding changes to git"
git add .
echo "post-commit: Amending commit with refreshed files"
git commit --amend --gpg-sign --no-edit --no-verify
echo "post-commit: Done"
exit 0