diff --git a/src/Models/Remote.cs b/src/Models/Remote.cs index 162c5aca..7e73012a 100644 --- a/src/Models/Remote.cs +++ b/src/Models/Remote.cs @@ -50,19 +50,7 @@ namespace SourceGit.Models return true; } - var localPath = url; - if (OperatingSystem.IsWindows()) - { - if (url.StartsWith("file:///", StringComparison.Ordinal)) - localPath = url.Substring(8); - } - else - { - if (url.StartsWith("file://", StringComparison.Ordinal)) - localPath = url.Substring(7); - } - - return Directory.Exists(localPath); + return url.StartsWith("file://", StringComparison.Ordinal) || Directory.Exists(url); } public bool TryGetVisitURL(out string url)