Merge pull request #12 from jsutlovic/master
Allow fetching trees with a slash in the tree name
This commit is contained in:
commit
306a34c82f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue