1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-11 09:32:55 +00:00

Revert "Merge remote-tracking branch 'github-ercanozkaya/master'"

This reverts commit b5eededbe9, reversing
changes made to 799a478f2a.

This change was wrong as the GitDriver was then telling it supports
all local URIs even when they are not git repositories.
This commit is contained in:
Christophe Coevoet 2012-05-17 14:54:45 +02:00
parent b5eededbe9
commit 4404c5f287

View file

@ -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;
}