Hello,
I’d like to use a GitLab group and its projects with PHP Composer.
My composer.json:
{
"repositories": [
{
"type": "git",
"url": "https://gitlab.com/<MY-GROUP>"
}
]
}
However, when I use composer require <MY-GROUP>/<MY-PROJECT>
, I get the following:
[RuntimeException]
Failed to execute git clone --mirror 'https://oauth2:***@gitlab.com/<MY-GROUP>' '/U
sers/kolja/.composer/cache/vcs/https---gitlab.com-<MY-GROUP>/'
Cloning into bare repository '/Users/kolja/.composer/cache/vcs/https---gitlab.com-<MY-GROUP>'...
fatal: unable to update url base from redirection:
asked for: https://oauth2:***@gitlab.com/<MY-GROUP>/info/refs?service=git-upload-
pack
redirect: https://gitlab.com/users/sign_in
I use Composer and GitLab with repositories in my account, and there it works. What am I doing wrong? The group and its projects are all public and have no restrictions.
Thanks for your help.