Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit dad9207

Browse files
committed
Fix "too few values in struct initializer" in repository_test.go
Signed-off-by: Saeed Rasooli <saeed.gnu@gmail.com>
1 parent d0fcd71 commit dad9207

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

repository_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ func (s *RepositorySuite) TestLog(c *C) {
870870
c.Assert(err, IsNil)
871871

872872
cIter, err := r.Log(&LogOptions{
873-
plumbing.NewHash("b8e471f58bcbca63b07bda20e428190409c2db47"),
873+
From: plumbing.NewHash("b8e471f58bcbca63b07bda20e428190409c2db47"),
874874
})
875875

876876
c.Assert(err, IsNil)
@@ -930,7 +930,7 @@ func (s *RepositorySuite) TestLogError(c *C) {
930930
c.Assert(err, IsNil)
931931

932932
_, err = r.Log(&LogOptions{
933-
plumbing.NewHash("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
933+
From: plumbing.NewHash("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
934934
})
935935
c.Assert(err, NotNil)
936936
}

0 commit comments

Comments
 (0)