From 1fe24a3837e13bf955a54b0d00040b76e3bb43e2 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 1 Apr 2012 18:54:21 +0200 Subject: [PATCH] Add support for github URLs in git driver --- 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 2b05f0b45..962f2bd20 100644 --- a/src/Composer/Repository/Vcs/GitDriver.php +++ b/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; }