aboutsummaryrefslogtreecommitdiffstats
path: root/remote_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'remote_test.go')
-rw-r--r--remote_test.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/remote_test.go b/remote_test.go
index d651a64..43276c2 100644
--- a/remote_test.go
+++ b/remote_test.go
@@ -118,6 +118,22 @@ func (s *RemoteSuite) TestFetchWithAllTags(c *C) {
})
}
+func (s *RemoteSuite) TestFetchWithNoTags(c *C) {
+ r := newRemote(memory.NewStorage(), &config.RemoteConfig{
+ URL: s.GetLocalRepositoryURL(fixtures.ByTag("tags").One()),
+ })
+
+ s.testFetch(c, r, &FetchOptions{
+ Tags: NoTags,
+ RefSpecs: []config.RefSpec{
+ config.RefSpec("+refs/heads/master:refs/remotes/origin/master"),
+ },
+ }, []*plumbing.Reference{
+ plumbing.NewReferenceFromStrings("refs/remotes/origin/master", "f7b877701fbf855b44c0a9e86f3fdce2c298b07f"),
+ })
+
+}
+
func (s *RemoteSuite) TestFetchWithDepth(c *C) {
r := newRemote(memory.NewStorage(), &config.RemoteConfig{
URL: s.GetBasicLocalRepositoryURL(),