Add support for file:// URIs to GitDriver
parent
799a478f2a
commit
ca217bd48f
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue