1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Adjust GitDriver tag parsing to resolve to SHAs

This commit is contained in:
Jordi Boggiano 2013-08-19 01:21:17 +02:00
parent c0b889a78a
commit d017e3f209
2 changed files with 10 additions and 5 deletions

View file

@ -252,11 +252,11 @@ class GitHubDriverTest extends \PHPUnit_Framework_TestCase
$process->expects($this->at(2))
->method('execute')
->with($this->stringContains('git tag'));
->with($this->stringContains('git show-ref --tags'));
$process->expects($this->at(3))
->method('splitLines')
->will($this->returnValue(array($identifier)));
->will($this->returnValue(array($sha.' refs/tags/'.$identifier)));
$process->expects($this->at(4))
->method('execute')