1
0
Fork 0

Do not prompt for dir change on create-project, fixes #6617

pull/6630/head
Jordi Boggiano 2017-08-21 09:13:08 +02:00
parent e33d00f98e
commit d352cc97f7
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ class Application extends BaseApplication
}
// prompt user for dir change if no composer.json is present in current dir
if ($io->isInteractive() && !in_array($commandName, array('init', 'about', 'help', 'diagnose', 'self-update', 'global'), true) && !file_exists(Factory::getComposerFile())) {
if ($io->isInteractive() && !in_array($commandName, array('init', 'about', 'help', 'diagnose', 'self-update', 'global', 'create-project'), true) && !file_exists(Factory::getComposerFile())) {
$dir = dirname(getcwd());
$home = realpath(getenv('HOME') ?: getenv('USERPROFILE') ?: '/');