8000 Enforce tag fetching clone coverage · GiTechLab/libgit2sharp@8a2efd5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8a2efd5

Browse files
committed
Enforce tag fetching clone coverage
Relates to libgit2#927
1 parent b8b17b2 commit 8a2efd5

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

LibGit2Sharp.Tests/FetchFixture.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,5 +173,20 @@ public void FetchRespectsConfiguredAutoTagSetting(TagFetchMode tagFetchMode, int
173173
Assert.Equal(expectedTagCount, repo.Tags.Count());
174174
}
175175
}
176+
177+
[Fact]
178+
public void CanFetchAllTagsAfterAnInitialClone()
179+
{
180+
var scd = BuildSelfCleaningDirectory();
181+
182+
const string url = "https://github.com/libgit2/TestGitRepository";
183+
184+
string clonedRepoPath = Repository.Clone(url, scd.DirectoryPath);
185+
186+
using (var repo = new Repository(clonedRepoPath))
187+
{
188+
repo.Fetch("origin", new FetchOptions { TagFetchMode = TagFetchMode.All });
189+
}
190+
}
176191
}
177192
}

0 commit comments

Comments
 (0)
0