From 64b0d721838cdceef679761c5cf69a0d070d14c9 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 6 Jan 2016 12:32:02 +0000 Subject: [PATCH] Add missing git fallback function in gitlab driver --- src/Composer/Repository/Vcs/GitLabDriver.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Composer/Repository/Vcs/GitLabDriver.php b/src/Composer/Repository/Vcs/GitLabDriver.php index 9fca65b11..fa13f952c 100644 --- a/src/Composer/Repository/Vcs/GitLabDriver.php +++ b/src/Composer/Repository/Vcs/GitLabDriver.php @@ -278,6 +278,16 @@ class GitLabDriver extends VcsDriver } } + /** + * Generate an SSH URL + * + * @return string + */ + protected function generateSshUrl() + { + return 'git@' . $this->originUrl . ':'.$this->owner.'/'.$this->repository.'.git'; + } + protected function setupGitDriver($url) { $this->gitDriver = new GitDriver(