Git hooks are killed

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Git hoots are terminated immediately, returning code 9.

% git commit
error: .git/hooks/pre-commit died of signal 9

Steps to Reproduce

Have a file .git/hooks/pre-commit
Run “git commit”

Expected Behavior

The hook should be executed.

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.5.5 (Universal)
VSCode Version: 1.99.3
Commit: 823f58d4f60b795a6aefb9955933f3a2f0331d70
Date: 2025-08-25T17:40:25.290Z (2 days ago)
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.6.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, sorry to hear you’re having issues with your Git hooks!

Unfortunately, the execution of Git hooks is entirely managed by the Git binary itself, so my initial assumption would be that this is not a Cursor bug itself.

I’d first confirm what is happening inside your pre-commit script and attempt to run it manually in a terminal, both within and outside of Cursor, to determine if it is a Cursor-specific issue.

Signal 9 is a SIGKILL, which suggests either the OS or Cursor is killing the script. This can be caused by the script itself crashing or due to memory usage too, hence my suggestions above!

Thanks!

This is fixed after restarting Cursor.