Skip to content

fix: fix husky pre commit hook so it works on linux#7

Open
Notexe wants to merge 1 commit into
atampy25:mainfrom
Notexe:main
Open

fix: fix husky pre commit hook so it works on linux#7
Notexe wants to merge 1 commit into
atampy25:mainfrom
Notexe:main

Conversation

@Notexe
Copy link
Copy Markdown

@Notexe Notexe commented Mar 18, 2026

Changes:

  • Removed .cmd from .husky/pre-commit (I can confirm that this still works on windows)
  • git update-index --chmod=+x .husky/pre-commit (this file wasn't being marked as executable when cloning the repo, this should fix that)

Edit: Just realised on Windows you have to run git config core.fileMode false otherwise the pre-commit file shows as having changes. Maybe that's something .gitattributes can fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant