aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/idxfile/writer_test.go
diff options
context:
space:
mode:
authorJavi Fontan <jfontan@gmail.com>2018-07-26 13:14:02 +0200
committerJavi Fontan <jfontan@gmail.com>2018-07-26 14:17:56 +0200
commit74f56f388bbe8072bfcd976add2373f9a7e20341 (patch)
treef6e5791eebe4eaa3ab2e4ac512833ffe6bfc55f3 /plumbing/format/idxfile/writer_test.go
parent4ddd6783cf9707f8b72ebb00e5bb4705f5fd436a (diff)
downloadgo-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.go2
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()