@@ -26,7 +26,7 @@ public BranchConfigurationCalculator(ILog log, GitVersionContext context)
26
26
public BranchConfig GetBranchConfiguration ( Branch targetBranch , IList < Branch > excludedInheritBranches = null )
27
27
{
28
28
var matchingBranches = context . FullConfiguration . GetConfigForBranch ( targetBranch . NameWithoutRemote ( ) ) ;
29
-
29
+
30
30
if ( matchingBranches == null )
31
31
{
32
32
log . Info ( $ "No branch configuration found for branch { targetBranch . FriendlyName } , falling back to default configuration") ;
@@ -84,7 +84,7 @@ private BranchConfig InheritBranchConfiguration(Branch targetBranch, BranchConfi
84
84
List < Branch > possibleParents ;
85
85
if ( branchPoint == BranchCommit . Empty )
86
86
{
87
- possibleParents = context . RepositoryMetadataProvider . GetBranchesContainingCommit ( targetBranch . Tip , branchesToEvaluate , true )
87
+ possibleParents = context . RepositoryMetadataProvider . GetBranchesContainingCommit ( targetBranch . Tip , branchesToEvaluate , false )
88
88
// It fails to inherit Increment branch configuration if more than 1 parent;
89
89
// therefore no point to get more than 2 parents
90
90
. Take ( 2 )
@@ -93,11 +93,11 @@ private BranchConfig InheritBranchConfiguration(Branch targetBranch, BranchConfi
93
93
else
94
94
{
95
95
var branches = context . RepositoryMetadataProvider
96
- . GetBranchesContainingCommit ( branchPoint . Commit , branchesToEvaluate , true ) . ToList ( ) ;
96
+ . GetBranchesContainingCommit ( branchPoint . Commit , branchesToEvaluate , false ) . ToList ( ) ;
97
97
if ( branches . Count > 1 )
98
98
{
99
99
var currentTipBranches = context . RepositoryMetadataProvider
100
- . GetBranchesContainingCommit ( context . CurrentCommit , branchesToEvaluate , true ) . ToList ( ) ;
100
+ . GetBranchesContainingCommit ( context . CurrentCommit , branchesToEvaluate , false ) . ToList ( ) ;
101
101
possibleParents = branches . Except ( currentTipBranches ) . ToList ( ) ;
102
102
}
103
103
else
0 commit comments