Skip to content

Commit b00a9db

Browse files
committed
Fix another test that doesn't sort commits properly
1 parent 819d5fd commit b00a9db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NerdBank.GitVersioning.Tests/GitExtensionsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public void GetVersionHeight_VersionJsonHasParsingErrorsInHistory()
118118
Assert.Equal(1, this.Repo.GetVersionHeight());
119119

120120
// And emulate fixing it without having checked in yet.
121-
this.Repo.Reset(ResetMode.Mixed, this.Repo.Head.Commits.Skip(1).First());
121+
this.Repo.Reset(ResetMode.Mixed, this.Repo.Head.Tip.Parents.Single());
122122
Assert.Equal(0, this.Repo.GetVersionHeight());
123123
}
124124

0 commit comments

Comments
 (0)