@@ -43,7 +43,7 @@ public SemanticVersion FindMainlineModeVersion(BaseVersion baseVersion)
43
43
var mainlineTip = mainline . Tip ;
44
44
45
45
// when the current branch is not mainline, find the effective mainline tip for versioning the branch
46
- if ( ! context . CurrentBranch . IsSameBranch ( mainline ) )
46
+ if ( ! context . CurrentBranch . Equals ( mainline ) )
47
47
{
48
48
mergeBase = FindMergeBaseBeforeForwardMerge ( baseVersion . BaseVersionSource , mainline , out mainlineTip ) ;
49
49
log . Info ( $ "Current branch ({ context . CurrentBranch . FriendlyName } ) was branch from { mergeBase } ") ;
@@ -71,7 +71,7 @@ public SemanticVersion FindMainlineModeVersion(BaseVersion baseVersion)
71
71
mainlineVersion . BuildMetaData = CreateVersionBuildMetaData ( mergeBase ) ;
72
72
73
73
// branches other than master always get a bump for the act of branching
74
- if ( ( ! context . CurrentBranch . IsSameBranch ( mainline ) ) && ( string . IsNullOrEmpty ( context . Configuration . NextVersion ) ) )
74
+ if ( ( ! context . CurrentBranch . Equals ( mainline ) ) && ( string . IsNullOrEmpty ( context . Configuration . NextVersion ) ) )
75
75
{
76
76
var branchIncrement = FindMessageIncrement ( null , context . CurrentCommit , mergeBase , mainlineCommitLog ) ;
77
77
log . Info ( $ "Performing { branchIncrement } increment for current branch ") ;
@@ -140,7 +140,7 @@ private IBranch GetMainline(ICommit baseVersionSource)
140
140
}
141
141
142
142
// prefer current branch, if it is a mainline branch
143
- if ( possibleMainlineBranches . Any ( context . CurrentBranch . IsSameBranch ) )
143
+ if ( possibleMainlineBranches . Any ( context . CurrentBranch . Equals ) )
144
144
{
145
145
log . Info ( $ "Choosing { context . CurrentBranch . FriendlyName } as mainline because it is the current branch") ;
146
146
return context . CurrentBranch ;
0 commit comments