1
0
Fork 0

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.
pull/705/head
Christophe Coevoet 2012-05-17 14:54:45 +02:00
parent b5eededbe9
commit 4404c5f287
1 changed files with 1 additions and 1 deletions

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