-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
Contact Details
No response
Detailed description?
Describe the bug
On Windows, the Claude Code hooks in .claude/hooks are checked out with Windows line endings (\r\n) by default if core.autocrlf=true is enabled due to
PlatformPlatform/.gitattributes
Line 2 in d4c3b6e
| * text=auto |
This prevents Claude Code from running the hooks:
Expected behavior
Shell scripts should probably be checked out with Unix line endings by default, or at least the ones used as Claude Code hooks:
# Shell scripts must use LF line endings (even on Windows)
*.sh text eol=lf
Severity
Low
Is this bug security related?
- This bug is related to security
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
No labels