feature: supports using local repository as remote (#706)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2024-11-21 14:49:32 +08:00
parent b407dd97a1
commit d98765364d
No known key found for this signature in database

View file

@ -1,4 +1,5 @@
using System; using System;
using System.IO;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
namespace SourceGit.Models namespace SourceGit.Models
@ -49,7 +50,7 @@ namespace SourceGit.Models
return true; return true;
} }
return false; return Directory.Exists(url);
} }
public bool TryGetVisitURL(out string url) public bool TryGetVisitURL(out string url)