Skip to content

Commit b2a832d

Browse files
committed
When HEAD is tagged, tell user that tag will be used
1 parent bda738d commit b2a832d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/GitVersionCore/GitVersionFinder.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ public SemanticVersion FindVersion(GitVersionContext context)
1212
"Running against branch: {0} ({1})",
1313
context.CurrentBranch.FriendlyName,
1414
context.CurrentCommit == null ? "-" : context.CurrentCommit.Sha));
15+
if (context.IsCurrentCommitTagged)
16+
{
17+
Logger.WriteInfo($"Current commit is tagged with version {context.CurrentCommitTaggedVersion}, " +
18+
"version calcuation is for metadata only.");
19+
}
1520
EnsureMainTopologyConstraints(context);
1621

1722
var filePath = Path.Combine(context.Repository.GetRepositoryDirectory(), "NextVersion.txt");

0 commit comments

Comments
 (0)