Files
1.20.1-FearFactoryTest
devtools
hooks
applypatch-msg.sample
commit-msg.sample
fsmonitor-watchman.sample
post-checkout
post-commit
post-merge
post-push
post-update.sample
pre-applypatch.sample
pre-commit
pre-commit.sample
pre-merge-commit.sample
pre-push
pre-push.sample
pre-rebase.sample
pre-receive.sample
prepare-commit-msg.sample
push-to-checkout.sample
sendemail-validate.sample
update.sample
.gitattributes
.gitignore
PSA.txt
README.md
FearFactory/hooks/pre-commit

13 lines
353 B
Plaintext
Raw Normal View History

2025-05-11 19:54:14 -05:00
#!/bin/bash
echo "🛠️ Normalizing line endings and file attributes before commit..."
git add --renormalize .
FILE="1.20.1-FearFactoryTest/minecraft/config/fabric/indigo-renderer.properties"
if [ -f "$FILE" ]; then
echo "🛠️ Normalizing timestamp in $FILE"
sed -i '2s/^#.*$/#Static Timestamp Removed/' "$FILE"
git add "$FILE"
fi