diff options
author | nulltoken <emeric.fermas@gmail.com> | 2013-06-23 13:21:22 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2013-06-26 01:06:19 +0400 |
commit | 09a26cfe1f8d4e91ab2815fdb6238afd7e400a2e (patch) | |
tree | 7f41303f6f6e5a7573a78f0ee580a845e77b6a4a /LibGit2Sharp.Tests/CheckoutFixture.cs | |
parent | 3c7c424f42d72be3eef0b3932d5713e1b189922d (diff) |
Obsolete repo.Init() overload which returns a Repository
Diffstat (limited to 'LibGit2Sharp.Tests/CheckoutFixture.cs')
-rw-r--r-- | LibGit2Sharp.Tests/CheckoutFixture.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/LibGit2Sharp.Tests/CheckoutFixture.cs b/LibGit2Sharp.Tests/CheckoutFixture.cs index 004dda99..e48321ea 100644 --- a/LibGit2Sharp.Tests/CheckoutFixture.cs +++ b/LibGit2Sharp.Tests/CheckoutFixture.cs @@ -312,9 +312,9 @@ namespace LibGit2Sharp.Tests [Fact] public void CanCancelCheckoutThroughNotifyCallback() { - SelfCleaningDirectory scd = BuildSelfCleaningDirectory(); + string repoPath = InitNewRepository(); - using (var repo = Repository.Init(scd.DirectoryPath)) + using (var repo = new Repository(repoPath)) { string relativePath = "a.txt"; Touch(repo.Info.WorkingDirectory, relativePath, "Hello\n"); @@ -432,8 +432,9 @@ namespace LibGit2Sharp.Tests expectedNotificationPath = expectedNotificationPath + Path.DirectorySeparatorChar; } - SelfCleaningDirectory scd = BuildSelfCleaningDirectory(); - using (var repo = Repository.Init(scd.DirectoryPath)) + string repoPath = InitNewRepository(); + + using (var repo = new Repository(repoPath)) { PopulateBasicRepository(repo); |