From dad9207f7c4efdb755279743d16b745f8d150a98 Mon Sep 17 00:00:00 2001 From: Saeed Rasooli Date: Mon, 5 Mar 2018 18:23:17 +0800 Subject: Fix "too few values in struct initializer" in repository_test.go Signed-off-by: Saeed Rasooli --- repository_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repository_test.go b/repository_test.go index ef37e37..1ad1607 100644 --- a/repository_test.go +++ b/repository_test.go @@ -870,7 +870,7 @@ func (s *RepositorySuite) TestLog(c *C) { c.Assert(err, IsNil) cIter, err := r.Log(&LogOptions{ - plumbing.NewHash("b8e471f58bcbca63b07bda20e428190409c2db47"), + From: plumbing.NewHash("b8e471f58bcbca63b07bda20e428190409c2db47"), }) c.Assert(err, IsNil) @@ -930,7 +930,7 @@ func (s *RepositorySuite) TestLogError(c *C) { c.Assert(err, IsNil) _, err = r.Log(&LogOptions{ - plumbing.NewHash("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"), + From: plumbing.NewHash("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"), }) c.Assert(err, NotNil) } -- cgit