From 781e0d4f5527bc7e72246b1190badf6e1cb90881 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 29 Aug 2012 15:44:52 +0200 Subject: [PATCH] Add detection of gitolite user for git repos --- src/Composer/Repository/Vcs/GitDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Repository/Vcs/GitDriver.php b/src/Composer/Repository/Vcs/GitDriver.php index e3d264cd0..00a5be4d4 100644 --- a/src/Composer/Repository/Vcs/GitDriver.php +++ b/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; }