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

Merge pull request from GHSA-v9qv-c7wm-wgmf

This commit is contained in:
Jordi Boggiano 2024-06-10 14:56:13 +02:00 committed by GitHub
parent fa3b9582c3
commit 6bd43dff85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 10 deletions

View file

@ -117,7 +117,7 @@ class VersionGuesserTest extends TestCase
'stdout' => " arbitrary $commitHash Commit message\n* feature $anotherCommitHash Another message\n",
],
[
'cmd' => 'git rev-list arbitrary..feature',
'cmd' => ['git', 'rev-list', 'arbitrary..feature'],
'stdout' => "$anotherCommitHash\n",
],
], true);
@ -147,7 +147,7 @@ class VersionGuesserTest extends TestCase
'stdout' => " latest-testing $commitHash Commit message\n* feature $anotherCommitHash Another message\n",
],
[
'cmd' => 'git rev-list latest-testing..feature',
'cmd' => ['git', 'rev-list', 'latest-testing..feature'],
'stdout' => "$anotherCommitHash\n",
],
], true);
@ -352,7 +352,7 @@ class VersionGuesserTest extends TestCase
"remotes/origin/1.5 03a15d220da53c52eddd5f32ffca64a7b3801bea Commit message\n",
],
[
'cmd' => 'git rev-list remotes/origin/1.5..feature-branch',
'cmd' => ['git', 'rev-list', 'remotes/origin/1.5..feature-branch'],
'stdout' => "\n",
],
], true);