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:
commit
a8df30c09b
5 changed files with 68 additions and 5 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue