Support branch with emoji, close #83

This commit is contained in:
Buu Nguyen 2014-05-20 12:32:51 -07:00
parent 420d2dd93b
commit b2c1e3b193
1 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@
, root = []
, folders = { '': root }
api.getTree(encodeURIComponent(repo.branch) + '?recursive=true', function(err, tree) {
api.getTree(encodeURIComponent(decodeURIComponent(repo.branch)) + '?recursive=true', function(err, tree) {
if (err) return done(err)
fetchSubmodules(function(err, submodules) {
@ -178,7 +178,7 @@
if (err || !data) return cb(err)
var submodules = {}
, lines = data.split(/\r\n|\r|\n/)
, lines = data.split(/\r\n|\r|\n/)
, lastPath
lines.forEach(function(line) {