aboutsummaryrefslogtreecommitdiffstats
path: root/tree_test.go
Commit message (Collapse)AuthorAgeFilesLines
* 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.