Skip to content

Commit

Permalink
Merge pull request #1169 from JakeGinnivan/feature/log-info-when-head…
Browse files Browse the repository at this point in the history
…-is-tagged

When HEAD is tagged, tell user that tag will be used
  • Loading branch information
gep13 authored Feb 25, 2017
2 parents bda738d + b2a832d commit 7201c7e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/GitVersionCore/GitVersionFinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ public SemanticVersion FindVersion(GitVersionContext context)
"Running against branch: {0} ({1})",
context.CurrentBranch.FriendlyName,
context.CurrentCommit == null ? "-" : context.CurrentCommit.Sha));
if (context.IsCurrentCommitTagged)
{
Logger.WriteInfo($"Current commit is tagged with version {context.CurrentCommitTaggedVersion}, " +
"version calcuation is for metadata only.");
}
EnsureMainTopologyConstraints(context);

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

0 comments on commit 7201c7e

Please sign in to comment.