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
SeaswimmerTheFsh 5624a1dc9d
All checks were successful
Autotagger / Autotagger (push) Successful in 5s
Build / Export Files (push) Successful in 7s
Build / Documentation (push) Successful in 18s
figuring out which part of the pre-commit hook causes the hook to hang
2024-03-24 04:18:03 -04:00

11 lines
301 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"
PREV_COMMIT=$(git rev-parse HEAD)
git commit --no-edit --no-verify --reuse-message="$PREV_COMMIT"
echo "pre-commit: Done"