You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi All,
I am trying to clone a python repository using the following code. I am trying to automate the process of cloning for certain automation tasks required for code analysis:
The problem
The error message
unable to access 'https://bitbucket.org/{workspace-name}/{repo-name}.git/': getaddrinfo()
...makes it clear that those two placeholders in the URL weren't replaced.
The fix
Change this:
repository_url = 'https://username@bitbucket.org/{workspace-name}/{repo-name}.git'
to the URL where you enter your actual workspacename and repository name:
repository_url = 'https://username@bitbucket.org/foo/bar.git'
To me it seems that the "username" part in the URL should also be replaced. At least I don't think that this is what you really want to use.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.