diff --git a/src/Composer/Repository/Vcs/GitBitbucketDriver.php b/src/Composer/Repository/Vcs/GitBitbucketDriver.php index 0578a8e85..6a15a4fa7 100644 --- a/src/Composer/Repository/Vcs/GitBitbucketDriver.php +++ b/src/Composer/Repository/Vcs/GitBitbucketDriver.php @@ -158,6 +158,6 @@ class GitBitbucketDriver implements VcsDriverInterface */ public static function supports($url, $deep = false) { - return preg_match('#^https://bitbucket\.org/([^/]+)/(.+?)\.git$#', $url, $match); + return preg_match('#^https://bitbucket\.org/([^/]+)/(.+?)\.git$#', $url); } }