diff options
Diffstat (limited to 'remote_test.go')
-rw-r--r-- | remote_test.go | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/remote_test.go b/remote_test.go index c369ab7..451f801 100644 --- a/remote_test.go +++ b/remote_test.go @@ -82,17 +82,13 @@ func (s *RemoteSuite) TestFetch(c *C) { c.Assert(err, IsNil) c.Assert(r.Connect(), IsNil) - sto := memory.NewObjectStorage() + sto := memory.NewStorage() err = r.Fetch(sto, &RemoteFetchOptions{ - References: []*core.Reference{ - core.NewReferenceFromStrings( - "refs/heads/master", "6ecf0ef2c2dffb796033e5a02219af86ec6584e5", - ), - }, + RefSpec: DefaultRefSpec, }) c.Assert(err, IsNil) - c.Assert(sto.Objects, HasLen, 28) + c.Assert(sto.ObjectStorage().(*memory.ObjectStorage).Objects, HasLen, 28) } func (s *RemoteSuite) TestHead(c *C) { |