Merge branch 'http'
This commit is contained in:
commit
921d66baa6
|
@ -39,6 +39,8 @@ namespace SparkleLib.Git {
|
||||||
Uri uri = RemoteUrl;
|
Uri uri = RemoteUrl;
|
||||||
|
|
||||||
if (!uri.Scheme.Equals ("ssh") &&
|
if (!uri.Scheme.Equals ("ssh") &&
|
||||||
|
!uri.Scheme.Equals ("https") &&
|
||||||
|
!uri.Scheme.Equals ("http") &&
|
||||||
!uri.Scheme.Equals ("git")) {
|
!uri.Scheme.Equals ("git")) {
|
||||||
|
|
||||||
uri = new Uri ("ssh://" + uri);
|
uri = new Uri ("ssh://" + uri);
|
||||||
|
@ -62,11 +64,16 @@ namespace SparkleLib.Git {
|
||||||
uri = new Uri ("ssh://git@gnome.org/git" + uri.AbsolutePath);
|
uri = new Uri ("ssh://git@gnome.org/git" + uri.AbsolutePath);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (string.IsNullOrEmpty (uri.UserInfo)) {
|
if (string.IsNullOrEmpty (uri.UserInfo) &&
|
||||||
if (uri.Port == -1)
|
!uri.Scheme.Equals ("https") &&
|
||||||
|
!uri.Scheme.Equals ("http")) {
|
||||||
|
|
||||||
|
if (uri.Port == -1) {
|
||||||
uri = new Uri (uri.Scheme + "://git@" + uri.Host + uri.AbsolutePath);
|
uri = new Uri (uri.Scheme + "://git@" + uri.Host + uri.AbsolutePath);
|
||||||
else
|
|
||||||
|
} else {
|
||||||
uri = new Uri (uri.Scheme + "://git@" + uri.Host + ":" + uri.Port + uri.AbsolutePath);
|
uri = new Uri (uri.Scheme + "://git@" + uri.Host + ":" + uri.Port + uri.AbsolutePath);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue