From f0d82854165519133b4d35298e00bfe2f8e97d8e Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 21 Nov 2024 14:53:43 +0800 Subject: [PATCH] enhance: only supports using local bare repository as remote (#706) Signed-off-by: leo --- src/Models/Remote.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Models/Remote.cs b/src/Models/Remote.cs index 98749c51..a65fa345 100644 --- a/src/Models/Remote.cs +++ b/src/Models/Remote.cs @@ -50,7 +50,7 @@ namespace SourceGit.Models return true; } - return Directory.Exists(url); + return url.EndsWith(".git", StringComparison.Ordinal) && Directory.Exists(url); } public bool TryGetVisitURL(out string url)