Skip to content

Commit

Permalink
allow init to go through git and get conflicts
Browse files Browse the repository at this point in the history
instead of acting like reset with just a copy
  • Loading branch information
Kelly Selden committed Jan 3, 2020
1 parent 75f3b97 commit 94b3c71
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,15 @@ module.exports = async function init({
blueprint
});

let init = false;

if (!baseBlueprint) {
// for non-existing default blueprints
blueprint.isBaseBlueprint = true;
init = true;
}

let result = await (await boilerplateUpdate({
endVersion: blueprint.version,
resolveConflicts,
reset,
init,
createCustomDiff: true,
customDiffOptions: ({
packageJson
Expand All @@ -122,7 +118,7 @@ module.exports = async function init({
blueprint
});

if (!(reset || init)) {
if (!reset) {
await stageBlueprintFile({
cwd,
emberCliUpdateJsonPath
Expand Down

0 comments on commit 94b3c71

Please sign in to comment.