Skip to content

Commit 33c891a

Browse files
committed
Fixed a small issue with build metadata
1 parent dc6f8b4 commit 33c891a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

GitVersionCore.Tests/VariableProviderTests.ProvidesVariablesInContinuousDeploymentModeForStable.approved.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"LegacySemVerPadded":"1.2.3.5",
1313
"AssemblySemVer":"1.2.3.0",
1414
"FullSemVer":"1.2.3.5",
15-
"InformationalVersion":"1.2.3.5",
15+
"InformationalVersion":"1.2.3.5+Branch.develop.Sha.commitSha",
1616
"BranchName":"develop",
1717
"Sha":"commitSha",
1818
"NuGetVersionV2":"1.2.3.5",

GitVersionCore/OutputVariables/CommitsAsFourthVersionPartFormatter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public string Format(string format, object arg, IFormatProvider formatProvider)
1818
var metaData = new SemanticVersionBuildMetaData(semanticVersion.BuildMetaData)
1919
{
2020
CommitsSinceTag = null
21-
}.ToString();
21+
}.ToString(format.ToLower() == "i" ? "f" : null);
2222

2323
return string.Format("{0}.{1}{2}{3}",
2424
semanticVersion.ToString("j"),

0 commit comments

Comments
 (0)