Merge remote-tracking branch 'github-ercanozkaya/master'
By Ercan Özkaya via Ercan Özkaya * github-ercanozkaya/master: Add support for file:// URIs to GitDriverpull/705/merge
commit
b5eededbe9
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue