Support branch with emoji, close #83
This commit is contained in:
parent
420d2dd93b
commit
b2c1e3b193
|
@ -141,7 +141,7 @@
|
||||||
, root = []
|
, root = []
|
||||||
, folders = { '': 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)
|
if (err) return done(err)
|
||||||
|
|
||||||
fetchSubmodules(function(err, submodules) {
|
fetchSubmodules(function(err, submodules) {
|
||||||
|
@ -178,7 +178,7 @@
|
||||||
if (err || !data) return cb(err)
|
if (err || !data) return cb(err)
|
||||||
|
|
||||||
var submodules = {}
|
var submodules = {}
|
||||||
, lines = data.split(/\r\n|\r|\n/)
|
, lines = data.split(/\r\n|\r|\n/)
|
||||||
, lastPath
|
, lastPath
|
||||||
|
|
||||||
lines.forEach(function(line) {
|
lines.forEach(function(line) {
|
||||||
|
|
Loading…
Reference in New Issue