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
SeaswimmerTheFsh 17fbcfe654
All checks were successful
Autotagger / Autotagger (push) Successful in 6s
Build / Export Files (push) Successful in 7s
Build / Documentation (push) Successful in 18s
made the pre-commit hook a post-commit hook
2024-03-24 04:32:29 -04:00

11 lines
262 B
Bash
Executable file

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