|
|
@ -44,7 +44,7 @@ abstract class BitbucketDriver extends VcsDriver
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function initialize()
|
|
|
|
public function initialize()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
preg_match('#^https?://bitbucket\.org/([^/]+)/([^/]+?)(\.git|/?)$#i', $this->url, $match);
|
|
|
|
preg_match('#^(?:https?://bitbucket\.org/|git@bitbucket\.org:)([^/]+)/([^/]+?)(\.git|/?)$#i', $this->url, $match);
|
|
|
|
$this->owner = $match[1];
|
|
|
|
$this->owner = $match[1];
|
|
|
|
$this->repository = $match[2];
|
|
|
|
$this->repository = $match[2];
|
|
|
|
$this->originUrl = 'bitbucket.org';
|
|
|
|
$this->originUrl = 'bitbucket.org';
|
|
|
|