Ver código fonte

Add missing git fallback function in gitlab driver

Jordi Boggiano 9 anos atrás
pai
commit
64b0d72183
1 arquivos alterados com 10 adições e 0 exclusões
  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(