diff --git a/src/Composer/Util/Git.php b/src/Composer/Util/Git.php index c90fde0b3..54abcb1b8 100644 --- a/src/Composer/Util/Git.php +++ b/src/Composer/Util/Git.php @@ -112,7 +112,7 @@ class Git return; } } - } elseif (preg_match('{^https://(bitbucket.org)/(.*)}', $url, $match)) { //bitbucket oauth + } elseif (preg_match('{^https://(bitbucket\.org)/(.*)(\.git)?$}U', $url, $match)) { //bitbucket oauth $bitbucketUtil = new Bitbucket($this->io, $this->config, $this->process); if (!$this->io->hasAuthentication($match[1])) {