Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2015-01-23 16:50:31 +0300
committernulltoken <emeric.fermas@gmail.com>2015-01-23 16:50:31 +0300
commit8a2efd54bd67d491a0471d17d9484d3563b223a8 (patch)
treed8c2d8ecd58fe169b49df34d98ccd05816f62745 /LibGit2Sharp.Tests
parentb8b17b232b315fd65daedc8c7f18b8deee0e794e (diff)
Enforce tag fetching clone coverage
Relates to #927
Diffstat (limited to 'LibGit2Sharp.Tests')
-rw-r--r--LibGit2Sharp.Tests/FetchFixture.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/LibGit2Sharp.Tests/FetchFixture.cs b/LibGit2Sharp.Tests/FetchFixture.cs
index b10f443c..945a2001 100644
--- a/LibGit2Sharp.Tests/FetchFixture.cs
+++ b/LibGit2Sharp.Tests/FetchFixture.cs
@@ -173,5 +173,20 @@ namespace LibGit2Sharp.Tests
Assert.Equal(expectedTagCount, repo.Tags.Count());
}
}
+
+ [Fact]
+ public void CanFetchAllTagsAfterAnInitialClone()
+ {
+ var scd = BuildSelfCleaningDirectory();
+
+ const string url = "https://github.com/libgit2/TestGitRepository";
+
+ string clonedRepoPath = Repository.Clone(url, scd.DirectoryPath);
+
+ using (var repo = new Repository(clonedRepoPath))
+ {
+ repo.Fetch("origin", new FetchOptions { TagFetchMode = TagFetchMode.All });
+ }
+ }
}
}