Git Pre-commit hook not firing on commit

Hey, thanks for the report. This looks like a known issue in 3.15.6. Commits made via the Source Control panel silently skip all git hooks like pre-commit, commit-msg, pre-push, and Husky. That shouldn’t happen, and it’s not something in your setup.

Just to double check, are you committing via the Source Control panel in Cursor? If yes, here are two workarounds until an update ships:

  • Commit from the integrated terminal using git commit. Hooks run normally there.
  • Or roll back to 3.14.27. Hooks work there too, confirmed by other users.

We’re tracking this, but there’s no exact timeline yet. There’s a thread you can follow for updates: Git hooks silently skipped for all Source Control operations since 3.15.6 — git extension forces `core.hooksPath=/dev/null`

Let me know if you’re not committing from the panel and you’re doing it another way, then we’ll take a separate look.