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

Conversation

@grokys
Copy link
Contributor

@grokys grokys commented Feb 23, 2017

In order to fix #800, we need to pass a progress object to IGitActionsExt.CloneAsync. This was not easy before as the call to CloneAsync was hidden in the Clone button command in RepositoryCloneService. This commit:

  • Stops the RepositoryCloneViewModel from doing the clone itself
  • Adds a DialogService to show the clone dialog and return its results
  • Adds a "progress" parameter to RepositoryCloneService.CloneRepository and IVSGitServices.Clone
  • Passes the progress object from the start page to RepositoryCloneService.CloneRepository

This commit also fixes #849:

  • RepositoryCloneService.CloneRepository and IVSGitServices.Clone now return a task that doesn't complete until the clone is complete
  • Changes GitHubConnectSection to have a Clone command which disabled itself while the clone is in progress.

Also a small rename:

  • Renamed UIControllerFlow.StartPageClone -> ReClone: The old name was misleading: a normal clone can also be initiated from the start page, this flow is for re-cloning a previously cloned repository.

…nsExt.CloneAsync`. This was not easy before as the call to `CloneAsync` was hidden in the Clone button command in RepositoryCloneService. This commit:

- Stops the `RepositoryCloneViewModel` from doing the clone itself
- Adds a `DialogService` to show the clone dialogs and return their results
- Adds a "progress" parameter to `RepositoryCloneService.CloneRepository` and `IVSGitServices.Clone`
- Makes the connect and start pages use the dialog service to show the dialog and then call the clone service

This commit also fixes #849:

- `RepositoryCloneService.CloneRepository` and `IVSGitServices.Clone` now return a task that doesn't complete until the clone is complete
- Changes `GitHubConnectSection` to have a `Clone` command which disabled itself while the clone is in progress.
The name was misleading: a normal clone can also be initiated from the
start page, this flow is for re-cloning a previously cloned repository.
Copy link
Collaborator

@jcansdale jcansdale left a comment

Choose a reason for hiding this comment

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

I'm afraid all clone seems to do for me is add the folder to the list of recent solutions/folders. It doesn't actually clone the repo. 😢

image

@grokys
Copy link
Contributor Author

grokys commented Feb 23, 2017

Uhh, not sure what's happened here, a load of changes aren't present!

@jcansdale
Copy link
Collaborator

Seems to be working now!

Is this the new progress bar?
image

@jcansdale
Copy link
Collaborator

jcansdale commented Feb 24, 2017

Unfortunately it hung near the end with the following: 😢
image

image

It then stuck like this when I tried to cancel:
image

Have you been able to clone GitHub/VisualStudio?

@grokys
Copy link
Contributor Author

grokys commented Feb 24, 2017

This seems to be a problem with VS2017 RC - it happens even when you clone from TE directly.

@jcansdale
Copy link
Collaborator

Clone and re-clone seems to be working. 👍 from me!

@grokys grokys merged commit 43fb5fe into master Feb 27, 2017
@grokys grokys deleted the fixes/800-pass-progress-to-clone branch February 27, 2017 17:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clone repo while cloning another repo GitHub provider on Start Page should use the new Clone API

4 participants