fixed Bitbucket's broken API
Merge pull request #2035 from xrstf/bitbucket-api-fix

fixed Bitbucket's broken API