mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
fix(Repository.csClone.xaml.cs): 修复之前的更改(232165fa3eafdd0d5589963f0a26a487e7075bcf)导致Remote name 不能正常设置
This commit is contained in:
parent
ceff6ef102
commit
6125c17354
2 changed files with 9 additions and 6 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue