mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
fix<Repository>: validation for remote uri with 'git@'
This commit is contained in:
parent
382ea6b89a
commit
f476d758ca
1 changed files with 1 additions and 2 deletions
|
@ -263,8 +263,7 @@ namespace SourceGit.Git {
|
||||||
return !string.IsNullOrEmpty(url)
|
return !string.IsNullOrEmpty(url)
|
||||||
&& (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("ssh://", StringComparison.Ordinal)
|
|
||||||
|| url.StartsWith("file://", StringComparison.Ordinal));
|
|| url.StartsWith("file://", StringComparison.Ordinal));
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
Loading…
Reference in a new issue