Pārlūkot izejas kodu

Add missing git fallback function in gitlab driver

Jordi Boggiano 9 gadi atpakaļ
vecāks
revīzija
64b0d72183
1 mainītis faili ar 10 papildinājumiem un 0 dzēšanām
  1. 10 0
      src/Composer/Repository/Vcs/GitLabDriver.php

+ 10 - 0
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(