aboutsummaryrefslogtreecommitdiffstats
path: root/repository_test.go
diff options
context:
space:
mode:
authorSaeed Rasooli <saeed.gnu@gmail.com>2018-03-05 18:23:17 +0800
committerSaeed Rasooli <saeed.gnu@gmail.com>2018-03-05 18:23:17 +0800
commitdad9207f7c4efdb755279743d16b745f8d150a98 (patch)
treeb37c4f34345a30f82cf3c0d1da5104dc370531aa /repository_test.go
parentd0fcd7136a31f3f693cb63e6e2733435e4240258 (diff)
downloadgo-git-dad9207f7c4efdb755279743d16b745f8d150a98.tar.gz
Fix "too few values in struct initializer" in repository_test.go
Signed-off-by: Saeed Rasooli <saeed.gnu@gmail.com>
Diffstat (limited to 'repository_test.go')
-rw-r--r--repository_test.go4
1 files 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)
}