Skip to content

Commit 6bf4319

Browse files
authored
Merge pull request #1365 from tvoyle/feature/MainlineRegexFix
Switch GetMainlineTip from using branch config key to using the regex
2 parents f8a4a2e + 636e70d commit 6bf4319

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitVersionCore/VersionCalculation/MainlineVersionCalculator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static Commit GetMainlineTip(GitVersionContext context)
120120
var mainlineBranches = context.Repository.Branches
121121
.Where(b =>
122122
{
123-
return mainlineBranchConfigs.Any(c => Regex.IsMatch(b.FriendlyName, c.Key));
123+
return mainlineBranchConfigs.Any(c => Regex.IsMatch(b.FriendlyName, c.Value.Regex));
124124
})
125125
.Where(b =>
126126
{

0 commit comments

Comments
 (0)