We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67be1f6 commit 3ecf6faCopy full SHA for 3ecf6fa
GitVersionCore/GitVersionContext.cs
@@ -84,7 +84,7 @@ IEnumerable<Branch> GetBranchesContainingCommit(string commitSha)
84
85
void AssignBranchConfiguration()
86
{
87
- var matchingBranches = Configuration.Branches.Where(b => Regex.IsMatch(CurrentBranch.Name, b.Key)).ToArray();
+ var matchingBranches = Configuration.Branches.Where(b => Regex.IsMatch("^" + CurrentBranch.Name, b.Key)).ToArray();
88
89
if (matchingBranches.Length == 0)
90
0 commit comments