mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-24 19:02:39 +08:00
fix: bug - rename local branch name should only check names with other local branches
This commit is contained in:
@@ -34,7 +34,7 @@ namespace SourceGit.ViewModels
|
||||
{
|
||||
foreach (var b in rename._repo.Branches)
|
||||
{
|
||||
if (b != rename.Target && b.Name == name)
|
||||
if (b.IsLocal && b != rename.Target && b.Name == name)
|
||||
{
|
||||
return new ValidationResult("A branch with same name already exists!!!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user