diff --git a/SparkleLib/Git/SparkleFetcherGit.cs b/SparkleLib/Git/SparkleFetcherGit.cs index 1c5a7560..4c11d3bf 100644 --- a/SparkleLib/Git/SparkleFetcherGit.cs +++ b/SparkleLib/Git/SparkleFetcherGit.cs @@ -60,13 +60,22 @@ namespace SparkleLib { } else { server = server.TrimEnd ("/".ToCharArray ()); - if (server.StartsWith ("ssh://")) + string protocol = ""; + + if (server.StartsWith ("ssh://")) { + server = server.Substring (6); + protocol = "ssh://"; + } + + if (server.StartsWith ("git://")) { server = server.Substring (6); + protocol = "git://"; + } if (!server.Contains ("@")) server = "git@" + server; - server = "ssh://" + server; + server = protocol + server; } base.target_folder = target_folder;