1
0
Fork 0

Fix scheme in public gitlab URLs, refs #6683

pull/6804/merge
Jordi Boggiano 2017-11-30 10:52:33 +01:00
parent b52fd60873
commit 94a1f16c96
1 changed files with 2 additions and 2 deletions

View File

@ -311,7 +311,7 @@ class GitLabDriver extends VcsDriver
if (isset($this->project['visibility'])) {
$this->isPrivate = $this->project['visibility'] !== 'public';
} else {
// client is not authendicated, therefore repository has to be public
// client is not authendicated, therefore repository has to be public
$this->isPrivate = false;
}
}
@ -351,7 +351,7 @@ class GitLabDriver extends VcsDriver
protected function generatePublicUrl()
{
return 'https://' . $this->originUrl . '/'.$this->namespace.'/'.$this->repository.'.git';
return $this->scheme . '://' . $this->originUrl . '/'.$this->namespace.'/'.$this->repository.'.git';
}
protected function setupGitDriver($url)