Pārlūkot izejas kodu

Add support for github URLs in git driver

Jordi Boggiano 13 gadi atpakaļ
vecāks
revīzija
1fe24a3837
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/Composer/Repository/Vcs/GitDriver.php

+ 1 - 1
src/Composer/Repository/Vcs/GitDriver.php

@@ -186,7 +186,7 @@ class GitDriver extends VcsDriver
      */
     public static function supports(IOInterface $io, $url, $deep = false)
     {
-        if (preg_match('#(^git://|\.git$|git@|//git\.)#i', $url)) {
+        if (preg_match('#(^git://|\.git$|git@|//git\.|//github.com/)#i', $url)) {
             return true;
         }