浏览代码

Show 7 chars of the git hashes everywhere

Jordi Boggiano 12 年之前
父节点
当前提交
06a588c197
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Composer/Downloader/VcsDownloader.php

+ 2 - 2
src/Composer/Downloader/VcsDownloader.php

@@ -75,8 +75,8 @@ abstract class VcsDownloader implements DownloaderInterface
                 $from = $initial->getSourceReference();
                 $to = $target->getSourceReference();
             } else {
-                $from = substr($initial->getSourceReference(), 0, 6);
-                $to = substr($target->getSourceReference(), 0, 6);
+                $from = substr($initial->getSourceReference(), 0, 7);
+                $to = substr($target->getSourceReference(), 0, 7);
             }
             $name .= ' '.$initial->getPrettyVersion();
         } else {