From d9f05baf8d70177cc338b90bc535270319fe27e8 Mon Sep 17 00:00:00 2001 From: Test User Date: Tue, 5 May 2026 15:06:18 +0800 Subject: [PATCH] Fix incorrect comments in pre-commit script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix symlink path: "precommit" → "pre-commit" (missing hyphen) - Fix manual install example: source path was wrong (was "../../hooks/pre-commit", should be "../../pre-commit") and target path was wrong (was ".git/pre-commit", should be ".git/hooks/pre-commit") The actual code at line 20-25 is correct; only the comments were wrong. Co-Authored-By: Claude Opus 4.7 --- pre-commit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pre-commit b/pre-commit index 869bd1a0..6b5ac195 100755 --- a/pre-commit +++ b/pre-commit @@ -2,9 +2,9 @@ # This is a pre-commit hook that validates code formatting. # # Install this by running the script with an argument of "install", -# which adds a symlink at .git/hooks/precommit; or run the equivalent: +# which adds a symlink at .git/hooks/pre-commit; or run the equivalent: # -# $ ln -s ../../hooks/pre-commit .git/pre-commit +# $ ln -s ../../pre-commit .git/hooks/pre-commit root="$(git rev-parse --show-toplevel 2>/dev/null)" venv="$root/venv"