# Git hooks are not working with Cursor commit

**URL:** <https://forum.cursor.com/t/git-hooks-are-not-working-with-cursor-commit/172750>\
**Category:** Bug Reports\
**Created:** [September 23, 2026, 7:53am UTC](https://forum.cursor.com/t/git-hooks-are-not-working-with-cursor-commit/172750 "2026-09-23T07:53:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![miganga](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@miganga](https://forum.cursor.com/u/miganga)\
**Post date:** [September 23, 2026, 7:53am UTC](https://forum.cursor.com/t/git-hooks-are-not-working-with-cursor-commit/172750/1 "2026-09-23T07:53:16Z")

</div>

### Where does the bug appear (feature/product)?

Cursor IDE

### Describe the Bug

Cursor 3.21.16’s bundled git extension injects core.hooksPath=/dev/null into every git process it spawns, so commits from the Source Control panel bypass husky, lint-staged and the tsc gate. No setting controls it. Terminal commits run the hook normally.

### Steps to Reproduce

Have a git hook with husky  
Try from terminal & time it  
Try the same commit from Cursor IDE

### Expected Behavior

Cursor commit should run exactly like the terminal version

### Operating System

MacOS

### Version Information

Cursor IDE 3.21.16

### Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [September 23, 2026, 9:12am UTC](https://forum.cursor.com/t/git-hooks-are-not-working-with-cursor-commit/172750/5 "2026-09-23T09:12:30Z")

</div>

> [@Git hooks silently skipped for all Source Control operations since 3.15.6 — git extension forces \`core.hooksPath=/dev/null\`](https://forum.cursor.com/t/git-hooks-silently-skipped-for-all-source-control-operations-since-3-15-6-git-extension-forces-core-hookspath-dev-null/167719/81):
>
> Hey everyone, Thanks for the reports and for your patience on this one. A fix for Source Control commits skipping git hooks is coming in Cursor 3.22 (the next minor release of Cursor). Once you’re on that version, pre-commit, commit-msg, pre-push, and Husky hooks will run again for commits, pushes, checkouts, and other actions started from the Source Control view, the same way they do from the terminal. Until then, committing from the integrated terminal still runs your hooks as expected. Pl…

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [October 30, 2026, 10:33pm UTC](https://forum.cursor.com/t/git-hooks-are-not-working-with-cursor-commit/172750/8 "2026-10-30T22:33:21Z")

</div>

Closed on October 30, 2026, 10:33pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
