From f476d758ca918743f0ee2c70acb439dd9c6dba4c Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 29 Sep 2020 14:13:49 +0800 Subject: [PATCH] fix: validation for remote uri with 'git@' --- src/Git/Repository.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Git/Repository.cs b/src/Git/Repository.cs index 7203b6b5..57b2ae13 100644 --- a/src/Git/Repository.cs +++ b/src/Git/Repository.cs @@ -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