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 819d5fd commit b00a9dbCopy full SHA for b00a9db
src/NerdBank.GitVersioning.Tests/GitExtensionsTests.cs
@@ -118,7 +118,7 @@ public void GetVersionHeight_VersionJsonHasParsingErrorsInHistory()
118
Assert.Equal(1, this.Repo.GetVersionHeight());
119
120
// And emulate fixing it without having checked in yet.
121
- this.Repo.Reset(ResetMode.Mixed, this.Repo.Head.Commits.Skip(1).First());
+ this.Repo.Reset(ResetMode.Mixed, this.Repo.Head.Tip.Parents.Single());
122
Assert.Equal(0, this.Repo.GetVersionHeight());
123
}
124
0 commit comments