Skip to content

Commit

Permalink
fixup! tagged version wins even if MinVerMinimumMajorMinor is higher
Browse files Browse the repository at this point in the history
  • Loading branch information
adamralph committed Jul 21, 2024
1 parent 6f87010 commit 5c045b8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions MinVer.Lib/Versioner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ public static Version GetVersion(string workDir, string tagPrefix, MajorMinor mi
_ = ignoreMinMajorMinor
? minMajorMinor != MajorMinor.Default && log.IsDebugEnabled && log.Debug($"Ignoring minimum major minor {minMajorMinor} because the commit is tagged.")
: calculatedVersion != version
? log.IsInfoEnabled &&
log.Info($"Bumping version to {calculatedVersion} to satisfy minimum major minor {minMajorMinor}.")
: log.IsDebugEnabled &&
log.Debug($"The calculated version {calculatedVersion} satisfies the minimum major minor {minMajorMinor}.");
? log.IsInfoEnabled && log.Info($"Bumping version to {calculatedVersion} to satisfy minimum major minor {minMajorMinor}.")
: log.IsDebugEnabled && log.Debug($"The calculated version {calculatedVersion} satisfies the minimum major minor {minMajorMinor}.");

_ = log.IsInfoEnabled && log.Info($"Calculated version {calculatedVersion}.");

Expand Down

0 comments on commit 5c045b8

Please sign in to comment.