diff options
author | Javi Fontan <jfontan@gmail.com> | 2018-07-26 13:14:02 +0200 |
---|---|---|
committer | Javi Fontan <jfontan@gmail.com> | 2018-07-26 14:17:56 +0200 |
commit | 74f56f388bbe8072bfcd976add2373f9a7e20341 (patch) | |
tree | f6e5791eebe4eaa3ab2e4ac512833ffe6bfc55f3 /plumbing/format/idxfile/writer_test.go | |
parent | 4ddd6783cf9707f8b72ebb00e5bb4705f5fd436a (diff) | |
download | go-git-74f56f388bbe8072bfcd976add2373f9a7e20341.tar.gz |
plumbing/idxfile: index is created only once and retrieved with Index
Index is also automatically generated when OnFooter is called.
Signed-off-by: Javi Fontan <jfontan@gmail.com>
Diffstat (limited to 'plumbing/format/idxfile/writer_test.go')
-rw-r--r-- | plumbing/format/idxfile/writer_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/format/idxfile/writer_test.go b/plumbing/format/idxfile/writer_test.go index 92d2046..51273a3 100644 --- a/plumbing/format/idxfile/writer_test.go +++ b/plumbing/format/idxfile/writer_test.go @@ -27,7 +27,7 @@ func (s *IndexSuite) TestIndexWriter(c *C) { _, err := parser.Parse() c.Assert(err, IsNil) - idx, err := obs.CreateIndex() + idx, err := obs.Index() c.Assert(err, IsNil) idxFile := f.Idx() |