Skip to content

Commit 7b70423

Browse files
committed
Update libgit2 binaries to 11f8336
libgit2/libgit2@32e4992...11f8336
1 parent d54f395 commit 7b70423

25 files changed

Lines changed: 95 additions & 25 deletions
796 KB
Binary file not shown.
-787 KB
Binary file not shown.
601 KB
Binary file not shown.
-591 KB
Binary file not shown.

LibGit2Sharp.Tests/CheckoutFixture.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,9 @@ public void CheckingOutAgainstAnUnbornBranchThrows()
361361

362362
using (var repo = new Repository(repoPath))
363363
{
364-
Assert.True(repo.Info.IsHeadOrphaned);
364+
Assert.True(repo.Info.IsHeadUnborn);
365365

366-
Assert.Throws<OrphanedHeadException>(() => repo.Checkout(repo.Head));
366+
Assert.Throws<UnbornBranchException>(() => repo.Checkout(repo.Head));
367367
}
368368
}
369369

LibGit2Sharp.Tests/CommitFixture.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ public void CanCommitALittleBit()
640640
AssertBlobContent(commit[relativeFilepath], "nulltoken\n");
641641

642642
Assert.Equal(0, commit.Parents.Count());
643-
Assert.False(repo.Info.IsHeadOrphaned);
643+
Assert.False(repo.Info.IsHeadUnborn);
644644

645645
// Assert a reflog entry is created on HEAD
646646
Assert.Equal(1, repo.Refs.Log("HEAD").Count());
@@ -804,7 +804,7 @@ public void CanNotAmendAnEmptyRepository()
804804

805805
using (var repo = new Repository(repoPath))
806806
{
807-
Assert.Throws<OrphanedHeadException>(() => repo.Commit("I can not amend anything !:(", Constants.Signature, Constants.Signature, true));
807+
Assert.Throws<UnbornBranchException>(() => repo.Commit("I can not amend anything !:(", Constants.Signature, Constants.Signature, true));
808808
}
809809
}
810810

LibGit2Sharp.Tests/RepositoryFixture.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ private static void AssertInitializedRepository(Repository repo, string expected
228228
{
229229
Assert.NotNull(repo.Info.Path);
230230
Assert.False(repo.Info.IsHeadDetached);
231-
Assert.True(repo.Info.IsHeadOrphaned);
231+
Assert.True(repo.Info.IsHeadUnborn);
232232

233233
Reference headRef = repo.Refs.Head;
234234
Assert.NotNull(headRef);
@@ -541,13 +541,13 @@ public void CanDetectIfTheHeadIsOrphaned()
541541
{
542542
string branchName = repo.Head.CanonicalName;
543543

544-
Assert.False(repo.Info.IsHeadOrphaned);
544+
Assert.False(repo.Info.IsHeadUnborn);
545545

546546
repo.Refs.Add("HEAD", "refs/heads/orphan", true);
547-
Assert.True(repo.Info.IsHeadOrphaned);
547+
Assert.True(repo.Info.IsHeadUnborn);
548548

549549
repo.Refs.Add("HEAD", branchName, true);
550-
Assert.False(repo.Info.IsHeadOrphaned);
550+
Assert.False(repo.Info.IsHeadUnborn);
551551
}
552552
}
553553

LibGit2Sharp.Tests/TagFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ public void CanListAllTagsInAEmptyRepository()
602602

603603
using (var repo = new Repository(repoPath))
604604
{
605-
Assert.True(repo.Info.IsHeadOrphaned);
605+
Assert.True(repo.Info.IsHeadUnborn);
606606
Assert.Equal(0, repo.Tags.Count());
607607
}
608608
}

0 commit comments

Comments
 (0)