Browse Source

Show 7 chars of the git hashes everywhere

Jordi Boggiano 12 năm trước cách đây
mục cha
commit
06a588c197
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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 {