浏览代码

Fix relative target dirs

Jordi Boggiano 14 年之前
父节点
当前提交
304ce3b375
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Composer/Autoload/AutoloadGenerator.php

+ 1 - 1
src/Composer/Autoload/AutoloadGenerator.php

@@ -52,7 +52,7 @@ EOF;
         $filesystem = new Filesystem();
         $filesystem = new Filesystem();
         $vendorPath = strtr(realpath($installationManager->getVendorPath()), '\\', '/');
         $vendorPath = strtr(realpath($installationManager->getVendorPath()), '\\', '/');
         $relVendorPath = ltrim(substr($vendorPath, strlen(getcwd())), '/');
         $relVendorPath = ltrim(substr($vendorPath, strlen(getcwd())), '/');
-        $vendorDirCode = $filesystem->findShortestPathCode($targetDir, $vendorPath, true);
+        $vendorDirCode = $filesystem->findShortestPathCode(realpath($targetDir), $vendorPath, true);
 
 
         $namespacesFile = <<<EOF
         $namespacesFile = <<<EOF
 <?php
 <?php