fetcher: ssh+backend strip should be in the derived class, not the base class. #1118

This commit is contained in:
Hylke Bons 2012-12-21 22:02:35 +01:00
parent 1d08c8176b
commit 829ce766f7
2 changed files with 3 additions and 3 deletions

View file

@ -66,6 +66,9 @@ namespace SparkleLib.Git {
string target_folder, bool fetch_prior_history) : base (server, required_fingerprint,
remote_path, target_folder, fetch_prior_history)
{
if (RemoteUrl.ToString ().StartsWith ("ssh+"))
RemoteUrl = new Uri ("ssh" + RemoteUrl.ToString ().Substring (RemoteUrl.ToString ().IndexOf ("://")));
Uri uri = RemoteUrl;
if (!uri.Scheme.Equals ("ssh") && !uri.Scheme.Equals ("https") &&

View file

@ -108,9 +108,6 @@ namespace SparkleLib {
TargetFolder = target_folder;
if (server.StartsWith ("ssh+"))
server = "ssh" + server.Substring (server.IndexOf ("://"));
RemoteUrl = new Uri (server + remote_path);
IsActive = false;
}