1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 16:42:57 +00:00

Add support for file:// URIs to GitDriver

This commit is contained in:
Ercan Özkaya 2012-05-17 15:36:02 +03:00
parent 799a478f2a
commit ca217bd48f

View file

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