Fix git shortening, it is sunday..

main
Jordi Boggiano 8 years ago
parent da2352caaa
commit a1b468ea50

@ -496,7 +496,7 @@ class GitDownloader extends VcsDownloader implements DvcsDownloaderInterface
protected function getShortHash($reference)
{
if (!$this->io->isVerbose() && preg_match('{^[0-9a-f]{40}$}', $reference)) {
return substr($reference, 10);
return substr($reference, 0, 10);
}
return $reference;

@ -2,7 +2,7 @@
create-project seld/jsonlint %testDir% 1.0.0 --prefer-source -n
--EXPECT-ERROR--
Installing seld/jsonlint (1.0.0)
- Installing seld/jsonlint (1.0.0) Cloning 3b4bc2a96ff5d3fe6866bfe9dd0c845246705791
- Installing seld/jsonlint (1.0.0) Cloning 3b4bc2a96f
Created project in %testDir%
Loading composer repositories with package information
Updating dependencies (including require-dev)

Loading…
Cancel
Save