You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/GitVersionCore/Configuration/IncrementStrategy.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ public enum IncrementStrategy
9
9
Minor,
10
10
Patch,
11
11
/// <summary>
12
-
/// Uses the <see cref="BranchConfig.Increment"/>, <see cref="BranchConfig.PreventIncrementOfMergedBranchVersion"/> and <see cref="BranchConfig.IsDevelop"/>
12
+
/// Uses the <see cref="BranchConfig.Increment"/>, <see cref="BranchConfig.PreventIncrementOfMergedBranchVersion"/> and <see cref="BranchConfig.TracksReleaseBranches"/>
13
13
/// of the "parent" branch (i.e. the branch where the current branch was branched from).
thrownewException(string.Format("Configuration value for 'Versioning mode' for branch {0} has no value. (this should not happen, please report an issue)",currentBranchConfig.Key));
88
-
if(!currentBranchConfig.Value.Increment.HasValue)
89
-
thrownewException(string.Format("Configuration value for 'Increment' for branch {0} has no value. (this should not happen, please report an issue)",currentBranchConfig.Key));
thrownewException(string.Format("Configuration value for 'PreventIncrementOfMergedBranchVersion' for branch {0} has no value. (this should not happen, please report an issue)",currentBranchConfig.Key));
thrownewException(string.Format("Configuration value for 'TrackMergeTarget' for branch {0} has no value. (this should not happen, please report an issue)",currentBranchConfig.Key));
thrownewException(string.Format("Configuration value for 'TracksReleaseBranches' for branch {0} has no value. (this should not happen, please report an issue)",currentBranchConfig.Key));
thrownewException(string.Format("Configuration value for 'IsReleaseBranch' for branch {0} has no value. (this should not happen, please report an issue)",currentBranchConfig.Key));
86
+
if(!currentBranchConfig.VersioningMode.HasValue)
87
+
thrownewException(string.Format("Configuration value for 'Versioning mode' for branch {0} has no value. (this should not happen, please report an issue)",currentBranchConfig.Name));
88
+
if(!currentBranchConfig.Increment.HasValue)
89
+
thrownewException(string.Format("Configuration value for 'Increment' for branch {0} has no value. (this should not happen, please report an issue)",currentBranchConfig.Name));
thrownewException(string.Format("Configuration value for 'PreventIncrementOfMergedBranchVersion' for branch {0} has no value. (this should not happen, please report an issue)",currentBranchConfig.Name));
thrownewException(string.Format("Configuration value for 'TrackMergeTarget' for branch {0} has no value. (this should not happen, please report an issue)",currentBranchConfig.Name));
thrownewException(string.Format("Configuration value for 'TracksReleaseBranches' for branch {0} has no value. (this should not happen, please report an issue)",currentBranchConfig.Name));
96
+
if(!currentBranchConfig.IsReleaseBranch.HasValue)
97
+
thrownewException(string.Format("Configuration value for 'IsReleaseBranch' for branch {0} has no value. (this should not happen, please report an issue)",currentBranchConfig.Name));
0 commit comments