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

Commit 2124eb1

Browse files
committed
Fix comparison
1 parent c2a74db commit 2124eb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.VisualStudio/TeamExplorer/Connect/GitHubConnectSection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ public bool OpenRepository()
252252
var old = Repositories.FirstOrDefault(x => String.Equals(Holder.ActiveRepo?.RepositoryPath, x.LocalPath, StringComparison.CurrentCultureIgnoreCase));
253253
// open the solution selection dialog when the user wants to switch to a different repo
254254
// since there's no other way of changing the source control context in VS
255-
if (SelectedRepository != old)
255+
if (!Equals(SelectedRepository, old))
256256
{
257257
if (ErrorHandler.Succeeded(ServiceProvider.GetSolution().OpenSolutionViaDlg(SelectedRepository.LocalPath, 1)))
258258
{

0 commit comments

Comments
 (0)