aboutsummaryrefslogtreecommitdiffstats
path: root/tree_test.go
Commit message (Collapse)AuthorAgeFilesLines
* fix zlib invalid header errorAlberto Cortés2016-01-271-0/+68
| | | | | The return value of reads to the packfile were being ignored, so zlib was getting invalid data on it read buffers.
* Fix commit.File() gorutine leakAlberto Cortés2016-01-211-0/+134
Commit.File() was leaking a goroutine because it was looping over an iterator without closing its channel. Now commit.File() calls the new Tree.File() method that searches the file in the repository by trasversing the dir tree instead of using the tree.Files() iterator. This not only prevent the goroutine leak, but also speeds up file searching.