소스 검색

Revert "Merge remote-tracking branch 'github-ercanozkaya/master'"

This reverts commit b5eededbe9bfa62f9f74fdb62f685bc47af9a288, reversing
changes made to 799a478f2ab1297ba05c6651bf8da6d9fb988683.

This change was wrong as the GitDriver was then telling it supports
all local URIs even when they are not git repositories.
Christophe Coevoet 13 년 전
부모
커밋
4404c5f287
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Composer/Repository/Vcs/GitDriver.php

+ 1 - 1
src/Composer/Repository/Vcs/GitDriver.php

@@ -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;
         }