aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing')
-rw-r--r--plumbing/object/blob_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/plumbing/object/blob_test.go b/plumbing/object/blob_test.go
index 181436d..e08ff25 100644
--- a/plumbing/object/blob_test.go
+++ b/plumbing/object/blob_test.go
@@ -6,6 +6,7 @@ import (
"io/ioutil"
"gopkg.in/src-d/go-git.v4/plumbing"
+ "gopkg.in/src-d/go-git.v4/plumbing/format/packfile"
. "gopkg.in/check.v1"
)
@@ -70,6 +71,12 @@ func (s *BlobsSuite) TestBlobIter(c *C) {
blobs := []*Blob{}
iter.ForEach(func(b *Blob) error {
+ var err error
+ b.obj, err = packfile.MemoryObjectFromDisk(b.obj)
+ if err != nil {
+ return err
+ }
+
blobs = append(blobs, b)
return nil
})