mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Add --no-show-signature where git supports it, fixes #8966
This commit is contained in:
parent
472a62152d
commit
93d4cf6f91
6 changed files with 42 additions and 17 deletions
|
@ -16,6 +16,7 @@ use Composer\Config;
|
|||
use Composer\Package\Version\VersionGuesser;
|
||||
use Composer\Semver\VersionParser;
|
||||
use Composer\Test\TestCase;
|
||||
use Composer\Util\Git as GitUtil;
|
||||
|
||||
class VersionGuesserTest extends TestCase
|
||||
{
|
||||
|
@ -66,7 +67,18 @@ class VersionGuesserTest extends TestCase
|
|||
->expects($this->at($step))
|
||||
->method('execute')
|
||||
->willReturnCallback(function ($command, &$output) use ($self) {
|
||||
$self->assertEquals('git log --pretty="%H" -n1 HEAD', $command);
|
||||
$self->assertEquals('git --version', $command);
|
||||
|
||||
return 0;
|
||||
})
|
||||
;
|
||||
|
||||
++$step;
|
||||
$executor
|
||||
->expects($this->at($step))
|
||||
->method('execute')
|
||||
->willReturnCallback(function ($command, &$output) use ($self, $executor) {
|
||||
$self->assertEquals('git log --pretty="%H" -n1 HEAD'.GitUtil::getNoShowSignatureFlag($executor), $command);
|
||||
|
||||
return 128;
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue