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 687f86b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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
3 changes: 2 additions & 1 deletion test/acceptance/ember-cli-update-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ describe(function() {
if (init) {
args = [
'init',
`--to=${to}`
`--to=${to}`,
'--resolve-conflicts'
];
}
if (install) {
Expand Down

0 comments on commit 687f86b

Please sign in to comment.