We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b4ff56 commit 4bec877Copy full SHA for 4bec877
packages/react-scripts/scripts/eject.js
@@ -54,11 +54,17 @@ inquirer
54
if (gitStatus) {
55
console.error(
56
chalk.red(
57
- `This git repository has untracked files or uncommitted changes:\n\n` +
58
- gitStatus.split('\n').map(line => ' ' + line) +
59
- '\n\n' +
+ 'This git repository has untracked files or uncommitted changes:'
+ ) +
+ '\n\n' +
60
+ gitStatus
61
+ .split('\n')
62
+ .map(line => line.match(/ .*/g)[0].trim())
63
+ .join('\n') +
64
65
+ chalk.red(
66
'Remove untracked files, stash or commit any changes, and try again.'
- )
67
+ )
68
);
69
process.exit(1);
70
}
0 commit comments