diff --git a/src/Composer/Command/CreateProjectCommand.php b/src/Composer/Command/CreateProjectCommand.php
index eaffda6f5..1801583fd 100644
--- a/src/Composer/Command/CreateProjectCommand.php
+++ b/src/Composer/Command/CreateProjectCommand.php
@@ -305,9 +305,13 @@ EOT
$directory = getcwd() . DIRECTORY_SEPARATOR . array_pop($parts);
}
- $io->writeError('Creating a "' . $packageName . '" project at "' . $directory . '"');
-
$fs = new Filesystem();
+ if (!$fs->isAbsolutePath($directory)) {
+ $directory = getcwd() . DIRECTORY_SEPARATOR . $directory;
+ }
+
+ $io->writeError('Creating a "' . $packageName . '" project at "' . $fs->findShortestPath(getcwd(), $directory, true) . '"');
+
if (file_exists($directory)) {
if (!is_dir($directory)) {
throw new \InvalidArgumentException('Cannot create project directory at "'.$directory.'", it exists as a file.');