From e532e70b22603ef74626f1319428c683ed08a662 Mon Sep 17 00:00:00 2001 From: Volker Killesreiter Date: Fri, 14 Feb 2020 19:54:18 +0100 Subject: [PATCH] Revert "Chore: Use consistent directory path" This reverts commit 43e0321ee74aa5efb9b720f8576145c351d7f3e3. --- src/Composer/Command/CreateProjectCommand.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Composer/Command/CreateProjectCommand.php b/src/Composer/Command/CreateProjectCommand.php index 61fe740ee..eaffda6f5 100644 --- a/src/Composer/Command/CreateProjectCommand.php +++ b/src/Composer/Command/CreateProjectCommand.php @@ -302,10 +302,9 @@ EOT // if no directory was specified, use the 2nd part of the package name if (null === $directory) { $parts = explode("/", $name, 2); - $directory = array_pop($parts); + $directory = getcwd() . DIRECTORY_SEPARATOR . array_pop($parts); } - $directory = getcwd() . DIRECTORY_SEPARATOR . $directory; $io->writeError('Creating a "' . $packageName . '" project at "' . $directory . '"'); $fs = new Filesystem();