Skip to content

Commit 5331dea

Browse files
committed
Fix test with repository clone
1 parent 1787c61 commit 5331dea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

LibGit2Sharp.Tests/ResetHeadFixture.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ public void ResetANewlyInitializedRepositoryThrows(bool isBare)
2525
[Fact]
2626
public void SoftResetToTheHeadOfARepositoryDoesNotChangeTheTargetOfTheHead()
2727
{
28-
using (var repo = new Repository(BareTestRepoPath))
28+
string path = CloneBareTestRepo();
29+
using (var repo = new Repository(path))
2930
{
3031
Branch oldHead = repo.Head;
3132

0 commit comments

Comments
 (0)