rename var

This commit is contained in:
Michael Bradley, Jr 2018-09-24 19:26:51 -05:00
parent 0e5989bf40
commit cf67bd0332
1 changed files with 4 additions and 4 deletions

View File

@ -93,10 +93,10 @@ class TemplateGenerator {
let url, folder, hgi;
try {
hgi = hostedGitInfo.fromUrl(uri);
if (!hgi) {
let x = uri.split('#');
x[0] = `embark-framework/embark-${x[0]}-template`;
hgi = hostedGitInfo.fromUrl(x.join('#'));
if (!hgi || hgi.user.includes('#')) {
let templateAndBranch = uri.split('#');
templateAndBranch[0] = `embark-framework/embark-${templateAndBranch[0]}-template`;
hgi = hostedGitInfo.fromUrl(templateAndBranch.join('#'));
}
if(!hgi) { throw new Error(); }
url = hgi.tarball();