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

Commit 567d490

Browse files
committed
Move StartClonenOnConnectPageAsync into Clone
Move NavigateToHomePage out of WaitForCloneOnHomePageAsync to show the stages more clearly.
1 parent 4f527e7 commit 567d490

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/GitHub.TeamFoundation.14/Services/VSGitServices.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ public async Task Clone(
8888

8989
#if TEAMEXPLORER14
9090
await StartClonenOnConnectPageAsync(teamExplorer, cloneUrl, clonePath, recurseSubmodules);
91+
NavigateToHomePage(teamExplorer); // Show progress on Team Explorer - Home
9192
await WaitForCloneOnHomePageAsync(teamExplorer);
9293
vsServices.Value.TryOpenRepository(clonePath); // Show the repository on Team Explorer - Home
9394
#else
@@ -114,8 +115,6 @@ static async Task StartClonenOnConnectPageAsync(
114115

115116
static async Task WaitForCloneOnHomePageAsync(ITeamExplorer teamExplorer)
116117
{
117-
NavigateToHomePage(teamExplorer);
118-
119118
// The clone progress bar appears on the GettingStartedSection of the Home page,
120119
// so we wait for this to be hidden before continuing.
121120
var sectionId = new Guid("d0200918-c025-4cc3-9dee-4f5e89d0c918"); // GettingStartedSection

0 commit comments

Comments
 (0)