Project Evil: allow SparkleShare to take full http(s) URIs without choking.
This commit is contained in:
parent
4797999952
commit
f61212b930
|
@ -30,6 +30,12 @@ namespace SparkleLib {
|
||||||
{
|
{
|
||||||
remote_folder = remote_folder.Trim ("/".ToCharArray ());
|
remote_folder = remote_folder.Trim ("/".ToCharArray ());
|
||||||
|
|
||||||
|
if (server.StartsWith("http")) {
|
||||||
|
base.target_folder = target_folder;
|
||||||
|
base.remote_url = server;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Gitorious formatting
|
// Gitorious formatting
|
||||||
if (server.Contains ("gitorious.org")) {
|
if (server.Contains ("gitorious.org")) {
|
||||||
server = "ssh://git@gitorious.org";
|
server = "ssh://git@gitorious.org";
|
||||||
|
|
|
@ -397,6 +397,9 @@ namespace SparkleShare {
|
||||||
|
|
||||||
accept_button.Clicked += delegate {
|
accept_button.Clicked += delegate {
|
||||||
string url = "ssh://git@" + server + "/" + folder;
|
string url = "ssh://git@" + server + "/" + folder;
|
||||||
|
if (server.StartsWith("http")) {
|
||||||
|
url = server;
|
||||||
|
}
|
||||||
|
|
||||||
SparkleShare.Controller.FolderFetched += delegate {
|
SparkleShare.Controller.FolderFetched += delegate {
|
||||||
Application.Invoke (delegate {
|
Application.Invoke (delegate {
|
||||||
|
|
Loading…
Reference in a new issue