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

Merge branch '1.5'

This commit is contained in:
Jordi Boggiano 2017-09-11 12:16:16 +02:00
commit a8df30c09b
5 changed files with 68 additions and 5 deletions

View file

@ -308,7 +308,12 @@ class GitLabDriver extends VcsDriver
// we need to fetch the default branch from the api
$resource = $this->getApiUrl();
$this->project = JsonFile::parseJson($this->getContents($resource, true), $resource);
$this->isPrivate = $this->project['visibility'] !== 'public';
if (isset($this->project['visibility'])) {
$this->isPrivate = $this->project['visibility'] !== 'public';
} else {
// client is not authendicated, therefore repository has to be public
$this->isPrivate = false;
}
}
protected function attemptCloneFallback()