Browse Source

Add detection of gitolite user for git repos

Jordi Boggiano 12 years ago
parent
commit
781e0d4f55
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Composer/Repository/Vcs/GitDriver.php

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

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