From 6a5b79143e0b09598b415b01b88f4e9eea9c92fd Mon Sep 17 00:00:00 2001 From: Timo Date: Tue, 25 Mar 2025 20:26:23 +0100 Subject: [PATCH] Make pre-commit message more alerting --- .githooks/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.githooks/pre-commit b/.githooks/pre-commit index 8d776e9c..d92625c2 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -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