diff --git a/src/Models/Remote.cs b/src/Models/Remote.cs index de2efc10..162c5aca 100644 --- a/src/Models/Remote.cs +++ b/src/Models/Remote.cs @@ -51,8 +51,16 @@ namespace SourceGit.Models } var localPath = url; - if (url.StartsWith("file://", StringComparison.Ordinal)) - localPath = url.Substring(7); + 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); }