Skip to content

Commit

Permalink
fix(git-repo): waited for initialization completion
Browse files Browse the repository at this point in the history
before moving on to scaffolding the language details
  • Loading branch information
travi committed Jun 23, 2018
1 parent 8132a66 commit 8316269
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/scaffolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ export async function scaffold(options) {
const gitRepo = answers[questionNames.GIT_REPO];
const vcs = {host: answers[questionNames.REPO_HOST], owner: answers[questionNames.REPO_OWNER], name: projectName};

if (gitRepo) gitRepository.init(projectRoot, 0);
if (gitRepo) {
console.log(chalk.blue('Initializing Git Repository')); // eslint-disable-line no-console
await gitRepository.init(projectRoot, 0);
}

const [license, language] = await Promise.all([
scaffoldLicense({
Expand Down

0 comments on commit 8316269

Please sign in to comment.