Skip to content

Commit b3276e6

Browse files
committed
Remove protected constructor in EffectiveConfiguration class and integrate code review remarks.
1 parent 03dd7e4 commit b3276e6

File tree

4 files changed

+287
-347
lines changed

4 files changed

+287
-347
lines changed

src/GitVersion.Core.Tests/Extensions/GitToolsTestingExtensions.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ public static GitVersionVariables GetVersion(this RepositoryFixtureBase fixture,
9292

9393
var semanticVersion = nextVersionCalculator.FindVersion();
9494

95-
var branchConfiguration = context.Configuration.GetBranchConfiguration(context.CurrentBranch);
96-
EffectiveConfiguration effectiveConfiguration = new(context.Configuration, branchConfiguration);
95+
var effectiveConfiguration = context.Configuration.GetEffectiveConfiguration(context.CurrentBranch.Name);
9796
return variableProvider.GetVariablesFor(semanticVersion, context.Configuration, effectiveConfiguration.PreReleaseWeight);
9897
}
9998
catch (Exception)

0 commit comments

Comments
 (0)