Skip to content

Commit

Permalink
Merge pull request #386 from AArnott/fix384
Browse files Browse the repository at this point in the history
Fix version reported at implied HEAD ref
  • Loading branch information
AArnott authored Sep 25, 2019
2 parents 76872cb + 5466e2e commit 2e79acd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NerdBank.GitVersioning/VersionOracle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public VersionOracle(string projectDirectory, LibGit2Sharp.Repository repo, LibG
: projectDirectory.Substring(repoRoot.Length).TrimStart(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar))
: null;

var commit = head ?? repo?.Head.Commits.FirstOrDefault();
var commit = head ?? repo?.Head.Tip;

var committedVersion = VersionFile.GetVersion(commit, relativeRepoProjectDirectory);

Expand Down

0 comments on commit 2e79acd

Please sign in to comment.