Revert "Merge remote-tracking branch 'github-ercanozkaya/master'"
This reverts commitpull/705/headb5eededbe9
, reversing changes made to799a478f2a
. This change was wrong as the GitDriver was then telling it supports all local URIs even when they are not git repositories.
parent
b5eededbe9
commit
4404c5f287
|
@ -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('#(^file://|^git://|\.git$|git@|//git\.|//github.com/)#i', $url)) {
|
if (preg_match('#(^git://|\.git$|git@|//git\.|//github.com/)#i', $url)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue