1
0
Fork 0

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

By Ercan Özkaya
via Ercan Özkaya
* github-ercanozkaya/master:
  Add support for file:// URIs to GitDriver
pull/705/merge
Nils Adermann 2012-05-17 14:39:28 +02:00
commit b5eededbe9
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) 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; return true;
} }