Make pre-commit message more alerting

This commit is contained in:
Timo
2025-03-25 20:26:23 +01:00
parent f868eca938
commit 6a5b79143e

View File

@@ -7,6 +7,6 @@ if test -f "$FILE"; then
# echo "running yarn"
x=$(yarn)
y=$(git add yarn.lock)
echo "YARN-LINKER-HOOK: We do not allow to commit with local links in the yarn.lock file. The pre-commit hook MODIFIED the yarn.lock file with disabled .links.yaml. Check the new git status (the hook added yarn.lock, was this desired?). The post-commit hook enables the links again. It moves .links.disabled.yaml to .links.yaml and runs yarn. Run \`git commit\` again!"
echo "YARN-LINKER-HOOK: We do not allow to commit with local links in the yarn.lock file. The pre-commit hook MODIFIED the yarn.lock file with disabled .links.yaml. Check the new git status (the hook added yarn.lock, was this desired?). The post-commit hook enables the links again. It moves .links.disabled.yaml to .links.yaml and runs yarn. If you are okay with the changes to the staged files, run \`git commit\` again!"
exit 1
fi