Allow fetching trees with a slash in the tree name

This commit is contained in:
Jero Sutlovic 2014-05-13 18:19:13 -04:00
parent 2d46b30a7d
commit f45d25d81d
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