From ca217bd48f1833668235378c73667fa70a6d37d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ercan=20=C3=96zkaya?= Date: Thu, 17 May 2012 15:36:02 +0300 Subject: [PATCH] Add support for file:// URIs to GitDriver --- 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 b33d75d85..8a94ad85b 100644 --- a/src/Composer/Repository/Vcs/GitDriver.php +++ b/src/Composer/Repository/Vcs/GitDriver.php @@ -181,7 +181,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('#(^file://|^git://|\.git$|git@|//git\.|//github.com/)#i', $url)) { return true; }