Skip to content

Commit

Permalink
Supported non-standard SSH port for Test Connection. Closes #47
Browse files Browse the repository at this point in the history
  • Loading branch information
KindDragon committed Oct 1, 2012
1 parent 9c14ba4 commit cf807d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion GitUI/FormRemotes.cs
Expand Up @@ -307,7 +307,11 @@ private void TestConnectionClick(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(uri.UserInfo))
sshURL = uri.UserInfo + "@";
sshURL += uri.Host + ":" + uri.LocalPath.Substring(1);
sshURL += uri.Authority;
if (uri.IsDefaultPort)
sshURL += ":" + uri.LocalPath.Substring(1);
else
sshURL += uri.LocalPath;
}
else
sshURL = Url.Text;
Expand Down

0 comments on commit cf807d4

Please sign in to comment.