enhance: only supports using local bare repository as remote (#706)

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

View file

@ -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)