10000 Unskip include-tag related fetch tests · GiTechLab/libgit2sharp@bc4897d · GitHub
[go: up one dir, main page]

Skip to content

Commit bc4897d

Browse files
committed
Unskip include-tag related fetch tests
Due to a recent GitHub policy change, those tests now pass
1 parent 296ee5d commit bc4897d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

LibGit2Sharp.Tests/FetchFixture.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class FetchFixture : BaseFixture
1212
{
1313
private const string remoteName = "testRemote";
1414

15-
[Theory(Skip = "Skipping due to recent github handling modification of --include-tag.")]
15+
[Theory]
1616
[InlineData("http://github.com/libgit2/TestGitRepository")]
1717
[InlineData("https://github.com/libgit2/TestGitRepository")]
1818
[InlineData("git://github.com/libgit2/TestGitRepository.git")]
@@ -152,7 +152,7 @@ public void CanFetchCustomRefSpecsIntoAnEmptyRepository(string url, string local
152152
[Theory]
153153
[InlineData(TagFetchMode.All, 4)]
154154
[InlineData(TagFetchMode.None, 0)]
155-
//[InlineData(TagFetchMode.Auto, 3)] // TODO: Skipping due to github modification of --include-tag handling."
155+
[InlineData(TagFetchMode.Auto, 3)]
156156
public void FetchRespectsConfiguredAutoTagSetting(TagFetchMode tagFetchMode, int expectedTagCount)
157157
{
158158
string url = "http://github.com/libgit2/TestGitRepository";

LibGit2Sharp.Tests/RepositoryFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ private static void AssertIsHidden(string repoPath)
150150
Assert.Equal(FileAttributes.Hidden, (attribs & FileAttributes.Hidden));
151151
}
152152

153-
[Fact(Skip = "Skipping due to recent github handling modification of --include-tag.")]
153+
[Fact]
154154
public void CanFetchFromRemoteByName()
155155
{
156156
string remoteName = "testRemote";

LibGit2Sharp.Tests/SmartSubtransportFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void CustomSmartSubtransportTest(string scheme, string url)
5555
}
5656

5757
// Add the expected tags
58-
string[] expectedTagNames = { "blob", "commit_tree" };
58+
string[] expectedTagNames = { "blob", "commit_tree", "annotated_tag" };
5959
foreach (string tagName in expectedTagNames)
6060
{
6161
TestRemoteInfo.ExpectedTagInfo expectedTagInfo = expectedResults.Tags[tagName];

0 commit comments

Comments
 (0)
0