fetcher git: fix url construction

This commit is contained in:
Hylke Bons 2011-05-31 18:30:28 +01:00
parent 00eadede74
commit 6dfab204e7
2 changed files with 3 additions and 8 deletions

View file

@ -54,7 +54,7 @@ namespace SparkleLib {
if (server.StartsWith ("ssh://"))
server = server.Substring (6);
if (!server.StartsWith ("@"))
if (!server.Contains ("@"))
server = "git@" + server;
server = "ssh://" + server;

View file

@ -192,16 +192,11 @@ namespace SparkleShare {
public override void OpenSparkleShareFolder (string subfolder)
{
string open_command_path = SparkleHelpers.CombineMore (Path.VolumeSeparatorChar.ToString (),
"usr", "bin", "xdg-open");
string folder = Path.Combine (SparklePaths.SparklePath, subfolder);
if (!File.Exists (open_command_path))
return;
string folder = SparkleHelpers.CombineMore (SparklePaths.SparklePath, subfolder);
Process process = new Process ();
process.StartInfo.Arguments = folder.Replace (" ", "\\ "); // Escape space-characters
process.StartInfo.FileName = "xdg-open";
process.StartInfo.Arguments = "\"" + folder + "\"";
process.Start ();
}
}