mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-22 20:37:19 -08:00
<feature>: add support for ssh:// protocol in git repository URL
This commit is contained in:
parent
079f1a78bc
commit
36e682d429
1 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,8 @@ namespace SourceGit.Views.Validations {
|
||||||
&& (url.StartsWith("http://", StringComparison.Ordinal)
|
&& (url.StartsWith("http://", StringComparison.Ordinal)
|
||||||
|| url.StartsWith("https://", StringComparison.Ordinal)
|
|| url.StartsWith("https://", StringComparison.Ordinal)
|
||||||
|| url.StartsWith("git@", StringComparison.Ordinal)
|
|| url.StartsWith("git@", StringComparison.Ordinal)
|
||||||
|| url.StartsWith("file://", StringComparison.Ordinal));
|
|| url.StartsWith("file://", StringComparison.Ordinal)
|
||||||
|
|| url.StartsWith("ssh://", StringComparison.Ordinal));
|
||||||
return valid ? ValidationResult.ValidResult : new ValidationResult(false, App.Text("BadRemoteUri"));
|
return valid ? ValidationResult.ValidResult : new ValidationResult(false, App.Text("BadRemoteUri"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue