We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b8cb31 commit e7d5417Copy full SHA for e7d5417
src/GitVersionCore/BranchConfigurationCalculator.cs
@@ -65,7 +65,7 @@ static BranchConfig InheritBranchConfiguration(GitVersionContext context, Branch
65
List<Branch> possibleParents;
66
if (branchPoint == BranchCommit.Empty)
67
{
68
- possibleParents = context.RepositoryMetadataProvider.GetBranchesContainingCommit(targetBranch.Tip, branchesToEvaluate, true)
+ possibleParents = context.RepositoryMetadataProvider.GetBranchesContainingCommit(context.CurrentCommit, branchesToEvaluate, true)
69
// It fails to inherit Increment branch configuration if more than 1 parent;
70
// therefore no point to get more than 2 parents
71
.Take(2)
0 commit comments