# git: Handle git pre-commit hooks separately \(\#43285\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/d07193cdf2b88dd0835342c2c69f707a890cbd21)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: d07193cdf2b88dd0835342c2c69f707a890cbd21

Requested commit: d07193cdf2b88dd0835342c2c69f707a890cbd21

Commit: d07193cdf2b88dd0835342c2c69f707a890cbd21

Tree: c40cf4df46d300d0d386ab2aa183af2241eefabc

Author: Jakub Konka

Committer: GitHub

## Message

```
git: Handle git pre-commit hooks separately (#43285)

We now run git pre-commit hooks before we commit. This ensures we don't
run into timeout issues with askpass delegate and report invalid error
to the user.

Closes #43157

Release Notes:

- Fixed long running pre-commit hooks causing committing from Zed to
fail.

Co-authored-by: Cole Miller <cole@zed.dev>
```

## Parents

- [279b76d44051db300de6c3e2606ea128646f6937](https://git.cafe/gitcafe/zed/commit/279b76d44051db300de6c3e2606ea128646f6937?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/d07193cdf2b88dd0835342c2c69f707a890cbd21?format=markdown)
