mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-01 17:24:59 +00:00
fix<CreateBranch>: fix branch name validation
This commit is contained in:
parent
04f1137f96
commit
001453d6ff
2 changed files with 10 additions and 5 deletions
|
@ -16,7 +16,8 @@ namespace SourceGit.Views.Validations {
|
|||
|
||||
name = Prefix + name;
|
||||
foreach (var t in Repo.Branches) {
|
||||
if (t.Name == name) {
|
||||
var check = t.IsLocal ? t.Name : $"{t.Remote}/{t.Name}";
|
||||
if (check == name) {
|
||||
return new ValidationResult(false, App.Text("DuplicatedBranchName"));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue