fetcher git: add FIXME

This commit is contained in:
Hylke Bons 2012-02-17 02:48:41 +01:00
parent 0633e53a73
commit 5de4491892

View file

@ -28,23 +28,27 @@ namespace SparkleLib {
private SparkleGit git;
public SparkleFetcherGit (string server, string remote_folder, string target_folder) :
base (server, remote_folder, target_folder)
public SparkleFetcherGit (string server, string remote_path, string target_folder) :
base (server, remote_path, target_folder)
{
if (server.EndsWith ("/"))
server = server.Substring (0, server.Length - 1);
if (!remote_folder.StartsWith ("/"))
remote_folder = "/" + remote_folder;
// FIXME: Adding these lines makes the fetcher fail
// if (remote_path.EndsWith ("/"))
// remote_path = remote_path.Substring (0, remote_path.Length - 1);
if (!remote_path.StartsWith ("/"))
remote_path = "/" + remote_path;
Uri uri;
try {
uri = new Uri (server + remote_folder);
uri = new Uri (server + remote_path);
} catch (UriFormatException) {
uri = new Uri ("ssh://" + server + remote_folder);
uri = new Uri ("ssh://" + server + remote_path);
}