fix(Repository.csClone.xaml.cs): 修复之前的更改(232165fa3eafdd0d5589963f0a26a487e7075bcf)导致Remote name 不能正常设置

This commit is contained in:
ZCShou 2020-07-24 21:11:40 +08:00
parent ceff6ef102
commit 6125c17354
2 changed files with 9 additions and 6 deletions

View file

@ -87,11 +87,7 @@ namespace SourceGit.UI {
string rName;
if (string.IsNullOrWhiteSpace(RemoteName))
{
var from = RemoteUri.LastIndexOfAny(new char[] { '\\', '/' });
if (from <= 0) return;
var name = RemoteUri.Substring(from + 1);
rName = name.Replace(".git", "");
rName = null;
}
else
{