Skip to content

Commit e60df06

Browse files
committed
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>
1 parent 9bc2c2e commit e60df06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ViewModels/CreateBranch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public CreateBranch(Repository repo, Models.Branch branch)
5959
_repo = repo;
6060
_baseOnRevision = branch.Head;
6161

62-
if (!branch.IsLocal && repo.Branches.Find(x => x.IsLocal && x.Name == branch.Name) == null)
62+
if (!branch.IsLocal)
6363
Name = branch.Name;
6464

6565
BasedOn = branch;

0 commit comments

Comments
 (0)