diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-10-10 10:15:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-10 10:15:19 +0200 |
commit | b345ed745d8044fddbb1da0a8010828ec550f294 (patch) | |
tree | 66eaf4241fb69ed3fca30888cd1e311ada9494d5 /remote_test.go | |
parent | e4ce8aacbcfc2ba341b6dc1938cd16deb734fe56 (diff) | |
parent | 39853aab188cb0b7e7c31c99b82149684df9a33c (diff) | |
download | go-git-b345ed745d8044fddbb1da0a8010828ec550f294.tar.gz |
Merge pull request #610 from keybase/strib/gh-master-list-extra-haves
remote: add the last 100 commits for each ref in haves list
Diffstat (limited to 'remote_test.go')
-rw-r--r-- | remote_test.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/remote_test.go b/remote_test.go index 2b8680d..a38675a 100644 --- a/remote_test.go +++ b/remote_test.go @@ -625,6 +625,10 @@ func (s *RemoteSuite) TestPushWrongRemoteName(c *C) { } func (s *RemoteSuite) TestGetHaves(c *C) { + f := fixtures.Basic().One() + sto, err := filesystem.NewStorage(f.DotGit()) + c.Assert(err, IsNil) + var localRefs = []*plumbing.Reference{ plumbing.NewReferenceFromStrings( "foo", @@ -640,7 +644,7 @@ func (s *RemoteSuite) TestGetHaves(c *C) { ), } - l, err := getHaves(localRefs) + l, err := getHaves(localRefs, memory.NewStorage(), sto) c.Assert(err, IsNil) c.Assert(l, HasLen, 2) } |