Skip to content

Commit 26f85a0

Browse files
author
Jake Ginnivan
committed
Should use targetBranch.Tip instead of CurrentCommit to give merge commit PRs a better chance of resolving
1 parent 6d90d26 commit 26f85a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitVersionCore/BranchConfigurationCalculator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static BranchConfig InheritBranchConfiguration(GitVersionContext context, Branch
6565
List<Branch> possibleParents;
6666
if (branchPoint == BranchCommit.Empty)
6767
{
68-
possibleParents = context.RepositoryMetadataProvider.GetBranchesContainingCommit(context.CurrentCommit, branchesToEvaluate, true)
68+
possibleParents = context.RepositoryMetadataProvider.GetBranchesContainingCommit(targetBranch.Tip, branchesToEvaluate, true)
6969
// It fails to inherit Increment branch configuration if more than 1 parent;
7070
// therefore no point to get more than 2 parents
7171
.Take(2)

0 commit comments

Comments
 (0)