Skip to content

Commit 60ef842

Browse files
committed
fixup! fixup! Ensure Tags can be created in detached Head state
1 parent e5f24be commit 60ef842

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

LibGit2Sharp.Tests/ResetHeadFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public void ResetANewlyInitializedRepositoryThrows(bool isBare)
1818

1919
using (var repo = new Repository(repoPath))
2020
{
21-
Assert.Throws<LibGit2SharpException>(() => repo.Reset(ResetMode.Soft));
21+
Assert.Throws<UnbornBranchException>(() => repo.Reset(ResetMode.Soft));
2222
}
2323
}
2424

LibGit2Sharp.Tests/ResetIndexFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public void ResetANewlyInitializedNonBareRepositoryThrows()
2525

2626
using (var repo = new Repository(repoPath))
2727
{
28-
Assert.Throws<LibGit2SharpException>(() => repo.Reset());
28+
Assert.Throws<UnbornBranchException>(() => repo.Reset());
2929
}
3030
}
3131

0 commit comments

Comments
 (0)