Skip to content

“Failed to find a git repository for buffer” notification is shown for buffers outside a git repo #55552

@tagimu

Description

@tagimu

Reproduction steps

Hey folks! This issue is low prio, not breaking anything - the editor works fine. It's just annoying to see this notification constantly. It's not even a bug but a small QoL feature.

  1. Enable git integration and blame line in Zed settings
  2. Open some file outside git repository
  3. Start working
  4. Get the notification
Image

Current vs. Expected behavior

Current: The notification appears every time the editor tries to run blame on a line
Expected: Do not run blame if the buffer is not part of a git repository

Zed version and system specs

Zed 1.0.0
Commit: 5ec84a9
Version: 1.0.0+stable.257.5ec84a926ef83865afb92d2a3d1ca3b419572cf9

Windows 11 (NOT WSL2)

Attach Zed log file

Zed.log
2026-05-03T14:54:24+02:00 ERROR [editor::git::blame] failed to get git blame data: failed to find a git repository for buffer
2026-05-03T14:55:03+02:00 ERROR [editor::git::blame] failed to get git blame data: failed to find a git repository for buffer
2026-05-03T14:55:05+02:00 ERROR [editor::git::blame] failed to get git blame data: failed to find a git repository for buffer

Relevant Zed settings

settings.json
{
"git": {
    "inline_blame": {
      "show_commit_summary": false,
      "delay_ms": 800,
    },
    "blame": {
      "show_avatar": false,
    },
  },
}

Relevant Keymap

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:integrations/git/blameFeedback for Zed's Git blame supportfrequency:uncommonBugs that happen for a small subset of users, special configurations, rare circumstances, etcpriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugs

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions