zed icon indicating copy to clipboard operation
zed copied to clipboard

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

Open dahjelle opened this issue 8 months ago • 0 comments

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

dahjelle avatar May 14 '25 13:05 dahjelle