github / VisualStudio

GitHub Extension for Visual Studio

Home Page:https://visualstudio.github.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Git Changes window displays the name of the repo I previously had open when I open a new Solution in a different Git repo

astrohart opened this issue · comments

commented

image

Please refer to the graphic file above.

Steps to Reproduce:

  1. Open a solution, e.g., Foo.sln, in a local Git repo on the disk, say, Foo.
    • It helps if the solution contains 300+ projects
  2. Work with the solution for a while; perhaps make some changes but do not commit them.
  3. Now, switch to a second solution, say, Bar.sln, in a local Git repo on the disk, say, Bar.

(Obviously, the names Foo and Bar refer to fictitious repos and solutions, just for the sake of example.)

You will notice that the Git Changes window still displays Git Changes - Foo on its title bar; moreover, the uncommitted files and changes from repository Foo are still displayed, even though the Bar repository is still open. Moreover, the Git Changes window will still allow all Git operations to be performed on Foo’s changes.

The expected behavior is that the Git Changes window should refresh to match the currently-open Repo.

If I click the File menu and then click Reopen Workspace, initially, nothing happens; but, after a while, the Git Changes window updates to point to the correct Repo.

It helps if you try to reproduce this issue with big (~300+ projects) solutions and on a slow computer (i.e., one with ~4 GB of RAM). The system I am on has only one RAM chip on the motherboard, consisting of 4 GB of storage; the rest of the RAM available to my computer is provided by Virtual Memory.

Thank you in advance.