diff options
Diffstat (limited to 'tree.go')
-rw-r--r-- | tree.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -50,7 +50,7 @@ func (t *Tree) walkEntries(base string, ch chan *File) { blob := &Blob{} blob.Decode(obj) - ch <- &File{Name: filepath.Join(base, entry.Name), Reader: blob.Reader()} + ch <- &File{Name: filepath.Join(base, entry.Name), Reader: blob.Reader(), Hash: entry.Hash} } } @@ -119,4 +119,5 @@ func (i *TreeIter) Next() (*Tree, error) { type File struct { Name string io.Reader + Hash core.Hash } |