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/pre-commit

12 lines
301 B
Text
Raw Normal View History

#!/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"
PREV_COMMIT=$(git rev-parse HEAD)
git commit --no-edit --no-verify --reuse-message="$PREV_COMMIT"
2024-03-24 04:04:15 -04:00
echo "pre-commit: Done"