Skip to content

Commit 891198b

Browse files
authored
Fixed bug in GitInformation.IsTag where it will never be true even when it should be. (#47)
Signed-off-by: AraHaan <seandhunt_7@yahoo.com>
1 parent 199c611 commit 891198b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Elskom.GitInformation/Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<PackageTags>GitBuildInformation</PackageTags>
77
<Copyright>Copyright (c) 2019-2021</Copyright>
88
<Description>A c# library that Registers git repository information on the assembly.</Description>
9-
<PackageReleaseNotes>Initial Release.</PackageReleaseNotes>
10-
<Version>1.0.0</Version>
9+
<PackageReleaseNotes>Fixed bug in GitInformation.IsTag where it will never be true even when it should be.</PackageReleaseNotes>
10+
<Version>1.0.1</Version>
1111
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
1212
<NeutralLanguage>en-US</NeutralLanguage>
1313
<NoWarn>$(NoWarn);NU5104;NU5118</NoWarn>

src/Elskom.GitInformation/GitInformation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private GitInformation(string headdesc, string commit, string branchname)
9090
/// <value>
9191
/// A value indicating whether refs point to a stable tag release.
9292
/// </value>
93-
public bool IsTag => this.Headdesc.StartsWith("refs/tags", StringComparison.Ordinal);
93+
public bool IsTag => this.Headdesc.StartsWith("tags/", StringComparison.Ordinal);
9494

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

0 commit comments

Comments
 (0)