Skip to content

Commit ede2696

Browse files
authored
Merge pull request #1350 from melnikvitaly/master
Fix issue with "tracks-release-branches" and custom release branch names
2 parents e4cd2ea + c7c5a53 commit ede2696

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitVersionCore/VersionCalculation/DevelopVersionStrategy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private IEnumerable<BaseVersion> ReleaseBranchBaseVersions(GitVersionContext con
5757
if (releaseBranchConfig.Any())
5858
{
5959
var releaseBranches = context.Repository.Branches
60-
.Where(b => releaseBranchConfig.Any(c => Regex.IsMatch(b.FriendlyName, c.Key)));
60+
.Where(b => releaseBranchConfig.Any(c => Regex.IsMatch(b.FriendlyName, c.Value.Regex)));
6161

6262
return releaseBranches
6363
.SelectMany(b => GetReleaseVersion(context, b))

0 commit comments

Comments
 (0)