Skip to content

Commit

Permalink
Fixed bug in GitInformation.IsTag where it will never be true even wh…
Browse files Browse the repository at this point in the history
…en it should be. (#47)

Signed-off-by: AraHaan <seandhunt_7@yahoo.com>
  • Loading branch information
AraHaan authored Jun 27, 2021
1 parent 199c611 commit 891198b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Elskom.GitInformation/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<PackageTags>GitBuildInformation</PackageTags>
<Copyright>Copyright (c) 2019-2021</Copyright>
<Description>A c# library that Registers git repository information on the assembly.</Description>
<PackageReleaseNotes>Initial Release.</PackageReleaseNotes>
<Version>1.0.0</Version>
<PackageReleaseNotes>Fixed bug in GitInformation.IsTag where it will never be true even when it should be.</PackageReleaseNotes>
<Version>1.0.1</Version>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<NeutralLanguage>en-US</NeutralLanguage>
<NoWarn>$(NoWarn);NU5104;NU5118</NoWarn>
Expand Down
2 changes: 1 addition & 1 deletion src/Elskom.GitInformation/GitInformation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private GitInformation(string headdesc, string commit, string branchname)
/// <value>
/// A value indicating whether refs point to a stable tag release.
/// </value>
public bool IsTag => this.Headdesc.StartsWith("refs/tags", StringComparison.Ordinal);
public bool IsTag => this.Headdesc.StartsWith("tags/", StringComparison.Ordinal);

/// <summary>
/// Applies the <see cref="Attribute"/>s that the specified <see cref="Assembly"/> contains.
Expand Down

0 comments on commit 891198b

Please sign in to comment.