1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 16:42:57 +00:00

Revert "Changes the query string parameter sha to ref to reflect the GitLab API"

Fixes #6344, refs #6198

This reverts commit 8a496cd2a7.
This commit is contained in:
Jordi Boggiano 2017-04-10 18:46:38 +02:00
parent 72616a9635
commit be201924cd
2 changed files with 2 additions and 2 deletions

View file

@ -175,7 +175,7 @@ class GitLabDriver extends VcsDriver
*/ */
public function getDist($identifier) public function getDist($identifier)
{ {
$url = $this->getApiUrl().'/repository/archive.zip?ref='.$identifier; $url = $this->getApiUrl().'/repository/archive.zip?sha='.$identifier;
return array('type' => 'zip', 'url' => $url, 'reference' => $identifier, 'shasum' => ''); return array('type' => 'zip', 'url' => $url, 'reference' => $identifier, 'shasum' => '');
} }

View file

@ -144,7 +144,7 @@ JSON;
$reference = 'c3ebdbf9cceddb82cd2089aaef8c7b992e536363'; $reference = 'c3ebdbf9cceddb82cd2089aaef8c7b992e536363';
$expected = array( $expected = array(
'type' => 'zip', 'type' => 'zip',
'url' => 'https://gitlab.com/api/v3/projects/mygroup%2Fmyproject/repository/archive.zip?ref='.$reference, 'url' => 'https://gitlab.com/api/v3/projects/mygroup%2Fmyproject/repository/archive.zip?sha='.$reference,
'reference' => $reference, 'reference' => $reference,
'shasum' => '', 'shasum' => '',
); );