Skip GitHub driver if openssl is disabled
parent
418e2e28f3
commit
b350dda0fe
|
@ -146,6 +146,6 @@ class GitHubDriver implements VcsDriverInterface
|
|||
*/
|
||||
public static function supports($url, $deep = false)
|
||||
{
|
||||
return preg_match('#^(?:https?|git)://github\.com/([^/]+)/(.+?)(?:\.git)?$#', $url, $match);
|
||||
return extension_loaded('openssl') && preg_match('#^(?:https?|git)://github\.com/([^/]+)/(.+?)(?:\.git)?$#', $url, $match);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue