Skip to content

Commit e7d5417

Browse files
author
Jake Ginnivan
committed
Undo change which causes test failures
1 parent 4b8cb31 commit e7d5417

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(targetBranch.Tip, branchesToEvaluate, true)
68+
possibleParents = context.RepositoryMetadataProvider.GetBranchesContainingCommit(context.CurrentCommit, 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)