Skip to content

Commit

Permalink
Using full URI to pass to Mercurial
Browse files Browse the repository at this point in the history
This gives us more flexibility (less security) for changing URI structure.
  • Loading branch information
josephmyers committed Sep 29, 2023
1 parent ad42833 commit 0f884e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Chorus/UI/Clone/GetCloneFromInternetDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -270,14 +270,14 @@ private void OnDownloadClick(object sender, EventArgs e)
/// Starts a clone operation with the supplied information.
/// <param name="username">Username for Mercurial authentication</param>
/// <param name="password">Password for Mercurial authentication</param>
/// <param name="host">Host name (with scheme), e.g. https://www.google.com</param>
/// <param name="projectName">Name of the project to clone (will be combined with the host Uri)</param>
/// <param name="projectName">Name of the project to clone</param>
/// <param name="projectUri">URI where the project can be found</param>
/// </summary>
public void StartClone(string username, string password, Uri host, string projectName)
public void StartClone(string username, string password, string projectName, Uri projectUri)
{
_model.Username = username;
_model.Password = password;
_model.CustomUrl = new Uri(host, projectName).ToString();
_model.CustomUrl = projectUri.ToString();
_model.IsCustomUrl = true;
_model.LocalFolderName = projectName;

Expand Down

0 comments on commit 0f884e8

Please sign in to comment.