From 4404c5f2874fbd0d66855ff27ba8c9eb1233eed7 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Thu, 17 May 2012 14:54:45 +0200 Subject: [PATCH] Revert "Merge remote-tracking branch 'github-ercanozkaya/master'" This reverts commit b5eededbe9bfa62f9f74fdb62f685bc47af9a288, reversing changes made to 799a478f2ab1297ba05c6651bf8da6d9fb988683. This change was wrong as the GitDriver was then telling it supports all local URIs even when they are not git repositories. --- 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 8a94ad85b..b33d75d85 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('#(^file://|^git://|\.git$|git@|//git\.|//github.com/)#i', $url)) { + if (preg_match('#(^git://|\.git$|git@|//git\.|//github.com/)#i', $url)) { return true; }