Git hooks silently skipped for all Source Control operations since 3.15.6 — git extension forces `core.hooksPath=/dev/null`

Any updates on that? This is seriously disrupting the work.

Please fix!

It seems like this has taken a lot longer than it should to fix? Especially given the severity of the issue.

Can you confirm if there’s really anything more than removing ["core.hooksPath", os.devNull] from the Cursor implementation of the extension? I can’t envision what product functionality that would be serving - some transparency here would go a long way.

I had to pin myself to 3.14.27 and am not liking this situation.

More than a month?

Please fix this!

When are you going to fix this

@danielfinke fair question, and it’s not just deleting that line. That override was added to stop agent-run git from executing hooks out of untrusted repo config, and it got applied too broadly, to manual Source Control commits as well. A proper fix keeps that protection for agent-initiated git while letting your own commits run hooks, so it’s a scoping change rather than a one-liner. It’s an issue we’re tracking and I don’t have a timeline.

For anyone still hitting this: committing from the integrated terminal runs your hooks normally in the meantime. I’ll post here when there’s an update.

What do you mean “you are tracking and don’t have a timeline” ???

It’s such an important thing, every commit I have to do, I have to open the terminal. It just gets me out of the workflow. It’s insane that this is not a TOP priority. It’s been over a month. Can’t believe an AI company with thousands of servers dedicated to AI cannot put compute towards fixing this issue

wtf I wont commit through terminal, how can you not fix issue as important as this? its was opened over a month ago!

Don’t hold your breath for this. Similar problem with the git integration, with git staged changes not showing in the gutter has been ignored for almost a year now.

It seems all attention is given to the agents view, while the editor view keeps compounding bugs. I expect the situation only to get worse as time goes on due to two reasons:

  1. Cursor team seems bent on improving the Agents window while ignoring the Editor window. I can only assume this is done because they believe that’s where the money is.
  2. Users that do not care or know how to edit the code and just prompt until it “works”. Probably the target group for the aforementioned Cursor team.

All in all pretty disappointed with things getting worse for the Editor view as we go on.

It’s insane that this is not a TOP priority. It’s been over a month. Can’t believe an AI company with thousands of servers dedicated to AI cannot put compute towards fixing this issue

@jan255 unfortunately, they don’t really care. This is the same story repeated from the git gutter bug mentioned above. If it’s not related to the agents view it does not exist for them. Expect bugs in editor view, extensions and tooling to compound in the near future.

For anyone still hitting this: committing from the integrated terminal runs your hooks normally in the meantime.

@mohitjain @kevinn Thanks, but no thanks. The topic is about committing from the Source Control panel not the terminal. Of course the terminal would work. That’s neither new info nor does it add anything to solving this problem.

Hey, this is really crippling our usage, we’re stuck in a version, unable to update and won’t update until this is fixed, you’re effectively keeping us away from getting the latest changes because you’re not fixing this.

How come? What’s holding you back, seriously?

It’s crazy that they still have not fixed it

I am using cursor 3.20.21 in mac. still facing same issue. any fix for this ??:cry:

would really love to see this fixed!! v3.20.17

Same issue my workaround is here:

Can’t believe we have to actually use this for such a simple and basic feature. This is some really bad behavior from the cursor team

Bruhh… still no updates ? @mohitjain @kevinn

Soo many people are effected by this, how is this not a priority !?

Why taking so long to fix it? It’s really annoying

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.

Please give it another try once you’re on 3.22 and let me know if anything still gets skipped.