From d98765364d2c81bab1891c01504ff7381c43a573 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 21 Nov 2024 14:49:32 +0800 Subject: [PATCH] feature: supports using local repository as remote (#706) Signed-off-by: leo --- src/Models/Remote.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Models/Remote.cs b/src/Models/Remote.cs index dcf30ddc..98749c51 100644 --- a/src/Models/Remote.cs +++ b/src/Models/Remote.cs @@ -1,4 +1,5 @@ using System; +using System.IO; using System.Text.RegularExpressions; namespace SourceGit.Models @@ -49,7 +50,7 @@ namespace SourceGit.Models return true; } - return false; + return Directory.Exists(url); } public bool TryGetVisitURL(out string url)