rename var
This commit is contained in:
parent
0e5989bf40
commit
cf67bd0332
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue