소스 검색

Revert "Chore: Use consistent directory path"

This reverts commit 43e0321ee74aa5efb9b720f8576145c351d7f3e3.
Volker Killesreiter 5 년 전
부모
커밋
e532e70b22
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/Composer/Command/CreateProjectCommand.php

+ 1 - 2
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('<info>Creating a "' . $packageName . '" project at "' . $directory . '"</info>');
 
         $fs = new Filesystem();