Skip to content

Comments

fix staging of submodules where the repository is closed (#205125)#296975

Open
fyrts wants to merge 2 commits intomicrosoft:mainfrom
fyrts:main
Open

fix staging of submodules where the repository is closed (#205125)#296975
fyrts wants to merge 2 commits intomicrosoft:mainfrom
fyrts:main

Conversation

@fyrts
Copy link

@fyrts fyrts commented Feb 23, 2026

This fixes staging of submodules if the repository corresponding to the submodule is closed (#205125).

Copilot AI review requested due to automatic review settings February 23, 2026 12:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes Git submodule staging/discard behavior when the submodule repository has been closed, by ensuring resource resolution falls back to the parent repository when the selected resource path is the submodule root.

Changes:

  • Adjusts repository resolution logic to avoid skipping the parent repository when the resource path equals a submodule root.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@fyrts fyrts marked this pull request as ready for review February 23, 2026 12:54
@vs-code-engineering
Copy link

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@lszomoru

Matched files:

  • extensions/git/src/model.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants