We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3eb9255 commit 2039267Copy full SHA for 2039267
src/NerdBank.GitVersioning.Tests/GitExtensionsTests.cs
@@ -95,7 +95,7 @@ public void GetVersionHeight_VersionJsonHasUnrelatedHistory()
95
96
// Also emulate case of where the related project.json was just changed to conform,
97
// but not yet checked in.
98
- this.Repo.Reset(ResetMode.Mixed, this.Repo.Head.Commits.Skip(1).First());
+ this.Repo.Reset(ResetMode.Mixed, this.Repo.Head.Tip.Parents.Single());
99
Assert.Equal(0, this.Repo.GetVersionHeight());
100
}
101
0 commit comments