1
0
Fork 0

Fix git shortening, it is sunday..

pull/5636/merge
Jordi Boggiano 2016-12-11 17:04:24 +01:00
parent da2352caaa
commit a1b468ea50
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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)