Skip to content

Commit 2039267

Browse files
committed
Fix test on newer versions of libgit2sharp
See libgit2/libgit2sharp#1412
1 parent 3eb9255 commit 2039267

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
@@ -95,7 +95,7 @@ public void GetVersionHeight_VersionJsonHasUnrelatedHistory()
9595

9696
// Also emulate case of where the related project.json was just changed to conform,
9797
// but not yet checked in.
98-
this.Repo.Reset(ResetMode.Mixed, this.Repo.Head.Commits.Skip(1).First());
98+
this.Repo.Reset(ResetMode.Mixed, this.Repo.Head.Tip.Parents.Single());
9999
Assert.Equal(0, this.Repo.GetVersionHeight());
100100
}
101101

0 commit comments

Comments
 (0)