diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-19 17:42:13 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-19 17:42:13 +0200 |
commit | 1d56b98d9b02e20f7feea542c75746eab34fad63 (patch) | |
tree | 006e8c3ac5e40353032109a5259bb28c37751996 /remote_test.go | |
parent | b1d116c59f7656dc8d5ff7294ba8f8a82c51bfd1 (diff) | |
download | go-git-1d56b98d9b02e20f7feea542c75746eab34fad63.tar.gz |
Remote.Fetch base on RefSpec, improvement of the responsabilities separation
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) { |