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:
leo
2026-02-10 21:06:28 +08:00
parent 9bc2c2e8c9
commit e60df06e37

View File

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