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 65073b5 commit 0057b72Copy full SHA for 0057b72
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