Merge pull request #12 from jsutlovic/master

Allow fetching trees with a slash in the tree name
This commit is contained in:
Buu Nguyen 2014-05-13 18:01:52 -07:00
commit 306a34c82f
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@
, root = []
, folders = { '': root }
api.getTree(repo.branch + '?recursive=true', function(err, tree) {
api.getTree(encodeURIComponent(repo.branch) + '?recursive=true', function(err, tree) {
if (err) return done(err)
tree.forEach(function(item) {
var path = item.path