fetcher git: fix url construction
This commit is contained in:
parent
00eadede74
commit
6dfab204e7
|
@ -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;
|
||||
|
|
|
@ -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 ();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue