fetcher git: fix url construction
This commit is contained in:
parent
00eadede74
commit
6dfab204e7
|
@ -54,7 +54,7 @@ namespace SparkleLib {
|
||||||
if (server.StartsWith ("ssh://"))
|
if (server.StartsWith ("ssh://"))
|
||||||
server = server.Substring (6);
|
server = server.Substring (6);
|
||||||
|
|
||||||
if (!server.StartsWith ("@"))
|
if (!server.Contains ("@"))
|
||||||
server = "git@" + server;
|
server = "git@" + server;
|
||||||
|
|
||||||
server = "ssh://" + server;
|
server = "ssh://" + server;
|
||||||
|
|
|
@ -192,16 +192,11 @@ namespace SparkleShare {
|
||||||
|
|
||||||
public override void OpenSparkleShareFolder (string subfolder)
|
public override void OpenSparkleShareFolder (string subfolder)
|
||||||
{
|
{
|
||||||
string open_command_path = SparkleHelpers.CombineMore (Path.VolumeSeparatorChar.ToString (),
|
string folder = Path.Combine (SparklePaths.SparklePath, subfolder);
|
||||||
"usr", "bin", "xdg-open");
|
|
||||||
|
|
||||||
if (!File.Exists (open_command_path))
|
|
||||||
return;
|
|
||||||
|
|
||||||
string folder = SparkleHelpers.CombineMore (SparklePaths.SparklePath, subfolder);
|
|
||||||
Process process = new Process ();
|
Process process = new Process ();
|
||||||
process.StartInfo.Arguments = folder.Replace (" ", "\\ "); // Escape space-characters
|
|
||||||
process.StartInfo.FileName = "xdg-open";
|
process.StartInfo.FileName = "xdg-open";
|
||||||
|
process.StartInfo.Arguments = "\"" + folder + "\"";
|
||||||
process.Start ();
|
process.Start ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue