Don't forget the port when editing a gitlab repository URL

This commit is contained in:
Nicolas Toniazzi 2015-12-03 11:17:05 +01:00
parent 992cf767a6
commit 4b78821333

View file

@ -254,7 +254,7 @@ class ProjectController extends PHPCI\Controller
if ($values['type'] == "gitlab") {
$accessInfo = $project->getAccessInformation();
$reference = $accessInfo["user"].'@'.$accessInfo["domain"].':' . $project->getReference().".git";
$reference = $accessInfo["user"].'@'.$accessInfo["domain"].':' . $accessInfo["port"] . '/' . ltrim($project->getReference(), '/') . ".git";
$values['reference'] = $reference;
}