mirror of
https://github.com/composer/composer
synced 2025-05-11 09:32:55 +00:00
Revert "Merge remote-tracking branch 'github-ercanozkaya/master'"
This reverts commitb5eededbe9
, 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.
This commit is contained in:
parent
b5eededbe9
commit
4404c5f287
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ class GitDriver extends VcsDriver
|
|||
*/
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue