Skip to content

Git UI not working "cannot parse integer from empty string" #38926

@jasononeil

Description

@jasononeil

Summary

Description

I've got a git repo (unfortunately private) that does not work with the Git panel in Zed (all my other projects work). It shows as "No changes to commit" and says "room-service (no branch)" despite being on a branch and having a diff. Switching branches, clearing the state etc

In the logs the only relevant thing I can see is this:

2025-09-26T08:48:52+08:00 ERROR [git_ui] cannot parse integer from empty string

I gather the text of that message is coming from the rust standard library.

No steps to reproduce yet

I'd love to try debug further and get a reproducible use case I can post publicly - any hints at what I could do to get better logging, or for any anomolies to look for in my repo?

Expected Behavior:

The git panel shows the current branch and changed files.

Actual Behavior:

The git panel acts as if there are no changes and the repo is not checked out on a branch.

Extra notes on git things outside the panel that are still working:

Click to expand

Inline diffs are still displaying

Image

Inline git blames are still displaying

Image

Git stash list still works

Image

git diff from the command pallette works

Image

Zed Version and System Specs

Zed: v0.205.5 (Zed)
OS: macOS 15.6.1
Memory: 36 GiB
Architecture: aarch64

Metadata

Metadata

Assignees

No one assigned

    Labels

    gitGit integration feedbackneeds-reproNeeds reproduction steps / someone to reproduce

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions