Skip to content

Commit

Permalink
(maint) Fix string formatting
Browse files Browse the repository at this point in the history
There was an extra - in the generated string.
  • Loading branch information
gep13 committed May 3, 2022
1 parent b3372c1 commit c6e5d63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Chocolatey.Cake.Recipe/Content/gitversion.cake
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public class BuildVersion
prerelease,
prerelease == "alpha" || prerelease == "beta" ? buildDate : string.Empty,
BuildParameters.BuildCounter != "-1" ? string.Format("-{0}", BuildParameters.BuildCounter) : string.Empty);
informationalVersion = string.Format("{0}-{1}-{2}-{3}", majorMinorPatch, prerelease, buildDate, sha);
informationalVersion = string.Format("{0}-{1}{2}-{3}", majorMinorPatch, prerelease, buildDate, sha);
context.Information("There is no tag.");
}
else
Expand Down

0 comments on commit c6e5d63

Please sign in to comment.