Skip to content

Commit 687f86b

Browse files
author
Kelly Selden
committed
allow init to go through git and get conflicts
instead of acting like reset with just a copy
1 parent 75f3b97 commit 687f86b

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/init.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,19 +92,15 @@ module.exports = async function init({
9292
blueprint
9393
});
9494

95-
let init = false;
96-
9795
if (!baseBlueprint) {
9896
// for non-existing default blueprints
9997
blueprint.isBaseBlueprint = true;
100-
init = true;
10198
}
10299

103100
let result = await (await boilerplateUpdate({
104101
endVersion: blueprint.version,
105102
resolveConflicts,
106103
reset,
107-
init,
108104
createCustomDiff: true,
109105
customDiffOptions: ({
110106
packageJson
@@ -122,7 +118,7 @@ module.exports = async function init({
122118
blueprint
123119
});
124120

125-
if (!(reset || init)) {
121+
if (!reset) {
126122
await stageBlueprintFile({
127123
cwd,
128124
emberCliUpdateJsonPath

test/acceptance/ember-cli-update-test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ describe(function() {
6464
if (init) {
6565
args = [
6666
'init',
67-
`--to=${to}`
67+
`--to=${to}`,
68+
'--resolve-conflicts'
6869
];
6970
}
7071
if (install) {

0 commit comments

Comments
 (0)