From f45d25d81d1498bf3d9c32885072fa8cc681b373 Mon Sep 17 00:00:00 2001 From: Jero Sutlovic Date: Tue, 13 May 2014 18:19:13 -0400 Subject: [PATCH] Allow fetching trees with a slash in the tree name --- inject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inject.js b/inject.js index 19d9348..2b05d59 100755 --- a/inject.js +++ b/inject.js @@ -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