mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-26 23:20:29 +00:00
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…
x
Reference in New Issue
Block a user