Skip to content

Commit 832356c

Browse files
committed
Use a warning message when multiple branches are matched.
1 parent 9c64e59 commit 832356c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/GitVersionCore/BranchConfigurationCalculator.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ public static BranchConfig GetBranchConfiguration(Commit currentCommit, IReposit
2121
{
2222
branchConfiguration = matchingBranches[0];
2323

24-
if (matchingBranches.Length > 1) {
25-
Logger.WriteInfo(string.Format(
24+
if (matchingBranches.Length > 1)
25+
{
26+
Logger.WriteWarning(string.Format(
2627
"Multiple branch configurations match the current branch branchName of '{0}'. Using the first matching configuration, '{1}'. Matching configurations include: '{2}'",
2728
currentBranch.FriendlyName,
2829
branchConfiguration.Name,

0 commit comments

Comments
 (0)