Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Submodules cause all kinds of issues when checking out a PR #826

@jcansdale

Description

@jcansdale
  • GitHub Extension for Visual Studio version: 2.2.0.6
  • Visual Studio version: 2015

There are many ways a submodule can become dirty/changed without the user intending to touch the module. Here is one example:

  1. Open the github/VisualStudio solution and GitHub tool window
  2. Click the title of PR 813
  3. Click Checkout fixes/move-submodules
  4. Click Pull Requests icon.
  5. Click the title of PR 734
  6. Click Checkout fixes/move-submodules
  7. Hovering over the Checkout button shows the following:
    image

This is disconcerting because the user hasn't made any changes. To fix it from inside Visual Studio, they'll need to.

  1. Open the Team Explorer tool window
  2. Click on the Changes icon
  3. Right-click on the script module and Submodule Update.
  4. On the GitHub tool window, click the refresh icon
  5. The Checkout button will now be clickable

This seems like a lot of ceremony to go though have not intentionally changed anything! Now, I know the user should have done a Submodule Update (or submodule sync) after checking out PR 813, but they won't necessarily know they have to on other projects.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions