Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 2712ff7

Browse files
authored
Merge pull request #509 from github/fixes/branch-validation-incomplete
Fix branch comparison in PR creation
2 parents 151f3f6 + 3a81551 commit 2712ff7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.App/ViewModels/PullRequestCreationViewModel.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ void SetupValidators()
165165

166166
BranchValidator = ReactivePropertyValidator.ForObservable(branchObs)
167167
.IfTrue(x => x.Source == null, Resources.PullRequestSourceBranchDoesNotExist)
168-
.IfTrue(x => x.Source.Name == x.Target.Name, Resources.PullRequestSourceAndTargetBranchTheSame);
168+
.IfTrue(x => x.Source.Equals(x.Target), Resources.PullRequestSourceAndTargetBranchTheSame);
169169
}
170170

171171
bool disposed; // To detect redundant calls

0 commit comments

Comments
 (0)