diff options
author | nulltoken <emeric.fermas@gmail.com> | 2015-03-16 22:50:16 +0300 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2015-03-17 21:58:37 +0300 |
commit | d8a04a467baf2ec0139d214f798f5c0a82dd25cb (patch) | |
tree | fb7adb551288e7934a1bd1055fe1188e649ca35a /LibGit2Sharp.Tests/CheckoutFixture.cs | |
parent | 964943bf9bed4da87a08befa7df30b8e2d77373d (diff) |
Update libgit2 to 9bbc8f3
https://github.com/libgit2/libgit2/compare/e0902fb...9bbc8f3
Diffstat (limited to 'LibGit2Sharp.Tests/CheckoutFixture.cs')
-rw-r--r-- | LibGit2Sharp.Tests/CheckoutFixture.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/LibGit2Sharp.Tests/CheckoutFixture.cs b/LibGit2Sharp.Tests/CheckoutFixture.cs index 77809d58..448ae2c3 100644 --- a/LibGit2Sharp.Tests/CheckoutFixture.cs +++ b/LibGit2Sharp.Tests/CheckoutFixture.cs @@ -779,7 +779,7 @@ namespace LibGit2Sharp.Tests public void CheckoutBranchFromDetachedHead() { string path = SandboxStandardTestRepo(); - using (var repo = new Repository(path)) + using (var repo = new Repository(path, new RepositoryOptions{ Identity = Constants.Identity })) { // Set the working directory to the current head ResetAndCleanWorkingDirectory(repo); @@ -789,12 +789,12 @@ namespace LibGit2Sharp.Tests Assert.True(repo.Info.IsHeadDetached); - Branch newHead = repo.Checkout(repo.Branches["master"], Constants.Signature); + Branch newHead = repo.Checkout(repo.Branches["master"]); // Assert reflog entry is created - AssertRefLogEntry(repo, "HEAD", newHead.Tip.Id, + AssertRefLogEntry(repo, "HEAD", string.Format("checkout: moving from {0} to {1}", initialHead.Tip.Sha, newHead.Name), - initialHead.Tip.Id, Constants.Signature); + initialHead.Tip.Id, newHead.Tip.Id, Constants.Identity, DateTimeOffset.Now); } } @@ -847,7 +847,7 @@ namespace LibGit2Sharp.Tests public void CheckoutCurrentReference() { string path = SandboxStandardTestRepo(); - using (var repo = new Repository(path)) + using (var repo = new Repository(path, new RepositoryOptions { Identity = Constants.Identity })) { Branch master = repo.Branches["master"]; Assert.True(master.IsCurrentRepositoryHead); @@ -866,8 +866,8 @@ namespace LibGit2Sharp.Tests repo.Checkout(master.Tip.Sha); Assert.True(repo.Info.IsHeadDetached); - AssertRefLogEntry(repo, "HEAD", master.Tip.Id, - string.Format("checkout: moving from master to {0}", master.Tip.Sha), master.Tip.Id); + AssertRefLogEntry(repo, "HEAD", + string.Format("checkout: moving from master to {0}", master.Tip.Sha), master.Tip.Id, master.Tip.Id, Constants.Identity, DateTimeOffset.Now); // Checkout detached "HEAD" => nothing should happen reflogEntriesCount = repo.Refs.Log(repo.Refs.Head).Count(); |