zed
zed copied to clipboard
Git: main repository should be default when submodules are present (SSH remote)
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:
- Open a git repository with submodules via SSH remote.
- Open the git panel.
- 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