mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 13:20:30 +08:00
enhance: always use the same name with the remote branch when creating a new branch based on it (#2116)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -59,7 +59,7 @@ namespace SourceGit.ViewModels
|
||||
_repo = repo;
|
||||
_baseOnRevision = branch.Head;
|
||||
|
||||
if (!branch.IsLocal && repo.Branches.Find(x => x.IsLocal && x.Name == branch.Name) == null)
|
||||
if (!branch.IsLocal)
|
||||
Name = branch.Name;
|
||||
|
||||
BasedOn = branch;
|
||||
|
||||
Reference in New Issue
Block a user