Skip to content

Commit 4ef7ff2

Browse files
committed
CheckoutFixture: update to expect undecorate tagname
Tag names are now recorded in the reflog without a leading `refs/tags/`, beginning in libgit2/libgit2#4174
1 parent 95ec0b7 commit 4ef7ff2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LibGit2Sharp.Tests/CheckoutFixture.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public void CanCheckoutAnExistingBranchByName(string branchName)
9797

9898
[Theory]
9999
[InlineData("6dcf9bf", true, "6dcf9bf")]
100-
[InlineData("refs/tags/lw", true, "refs/tags/lw")]
100+
[InlineData("refs/tags/lw", true, "lw")]
101101
[InlineData("HEAD~2", true, "HEAD~2")]
102102
[InlineData("6dcf9bf", false, "6dcf9bf7541ee10456529833502442f385010c3d")]
103103
[InlineData("refs/tags/lw", false, "e90810b8df3e80c413d903f631643c716887138d")]
@@ -748,7 +748,7 @@ public void CheckingOutABranchDoesNotAlterBinaryFiles()
748748

749749
[Theory]
750750
[InlineData("a447ba2ca8")]
751-
[InlineData("refs/tags/lw")]
751+
[InlineData("lw")]
752752
[InlineData("e90810^{}")]
753753
public void CheckoutFromDetachedHead(string commitPointer)
754754
{

0 commit comments

Comments
 (0)