Skip to content

Prek causes git commit to never complete #37293

@WAKayser

Description

@WAKayser

Summary

Prek (alternative to pre-commit) causes git commit to never complete and prevents various features from working.

Description

Recently I tried switching from pre-commit to prek. All seemed to work well. But when committing from zed the commit spinner keeps spinning infinitely. This also prevents any other update to git state or the agent panel from working.

Steps to reproduce:

  1. create git repo
  2. install prek (uv tool install prek && prek install)
  3. add a sample .pre-commit-config.yaml file.
  4. try to create a commit via the panel.

Sample file to use.

repos:
  - repo: local
    hooks:
      - id: test
        name: test
        entry: echo "Running tests..."
        language: system
        pass_filenames: false

fail_fast: true

Expected Behavior:
commit to succeed.

Actual Behavior:
git commit spinner keeps showing in the bottom bar.

Nothing on this shows in the log and there is no error message. I have set up zed to be build. Let me know what I can do to help troubleshoot this issue.

Zed Version and System Specs

Zed: v0.201.8 (Zed)
OS: macOS 15.5.0
Memory: 18 GiB
Architecture: aarch64

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

🚢 Shipped by Community

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions