mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Checkout branch by name when the current reference matches the branch tip, fixes #1164
This commit is contained in:
parent
0c3371b30f
commit
3068f29b4f
2 changed files with 18 additions and 1 deletions
|
@ -67,6 +67,11 @@ class GitDownloaderTest extends \PHPUnit_Framework_TestCase
|
|||
->will($this->returnValue(0));
|
||||
|
||||
$processExecutor->expects($this->at(1))
|
||||
->method('execute')
|
||||
->with($this->equalTo($this->getCmd("git log 'master' -1 --format=format:%H")), $this->equalTo(null), $this->equalTo('composerPath'))
|
||||
->will($this->returnValue(0));
|
||||
|
||||
$processExecutor->expects($this->at(2))
|
||||
->method('execute')
|
||||
->with($this->equalTo($this->getCmd("git checkout '1234567890123456789012345678901234567890' && git reset --hard '1234567890123456789012345678901234567890'")), $this->equalTo(null), $this->equalTo('composerPath'))
|
||||
->will($this->returnValue(0));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue