Skip to content

Git: main repository should be default when submodules are present (SSH remote) #30694

@dahjelle

Description

@dahjelle

Summary

When opening a repository (via SSH remote) with multiple submodules, the git panel picks one of the submodules (arbitrarily?) as the git the active git repository, instead of the top-level repository.

Description

Steps to trigger the problem:

  1. Open a git repository with submodules via SSH remote.
  2. Open the git panel.
  3. Look at the active repository/branch selector.

Actual Behavior:

  • A random(?) submodule is selected as the repository for the git panel to work with, instead of the top-level repository.

Expected Behavior:

  • The top-level git repository should be selected by default.
  • The repository picker should have submodules sorted alphabetically. :-)

Zed Version and System Specs

Zed: v0.186.7 (Zed)
OS: macOS 15.4.1
Memory: 16 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