fix<Repository>: validation for remote uri with 'git@'

This commit is contained in:
leo 2020-09-29 14:13:49 +08:00
parent 382ea6b89a
commit f476d758ca

View file

@ -263,8 +263,7 @@ namespace SourceGit.Git {
return !string.IsNullOrEmpty(url)
&& (url.StartsWith("http://", StringComparison.Ordinal)
|| url.StartsWith("https://", StringComparison.Ordinal)
|| url.StartsWith("git://", StringComparison.Ordinal)
|| url.StartsWith("ssh://", StringComparison.Ordinal)
|| url.StartsWith("git@", StringComparison.Ordinal)
|| url.StartsWith("file://", StringComparison.Ordinal));
}
#endregion