From e60df06e3732a1b1fba5d515109030e6badb1be9 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 10 Feb 2026 21:06:28 +0800 Subject: [PATCH] enhance: always use the same name with the remote branch when creating a new branch based on it (#2116) Signed-off-by: leo --- src/ViewModels/CreateBranch.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ViewModels/CreateBranch.cs b/src/ViewModels/CreateBranch.cs index 45b8ae34..b5d4d712 100644 --- a/src/ViewModels/CreateBranch.cs +++ b/src/ViewModels/CreateBranch.cs @@ -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;