From 36e682d429bdaa5cc17ccb00796213417668aa78 Mon Sep 17 00:00:00 2001 From: sourcegit-scm <85621660+sourcegit-scm@users.noreply.github.com> Date: Mon, 22 May 2023 18:30:25 +0800 Subject: [PATCH] : add support for ssh:// protocol in git repository URL --- src/Views/Validations/GitURL.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Views/Validations/GitURL.cs b/src/Views/Validations/GitURL.cs index 86778cc6..cf502007 100644 --- a/src/Views/Validations/GitURL.cs +++ b/src/Views/Validations/GitURL.cs @@ -11,7 +11,8 @@ namespace SourceGit.Views.Validations { && (url.StartsWith("http://", StringComparison.Ordinal) || url.StartsWith("https://", 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")); } }