Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Error when import / add a repository from one workspace to another in Bitbucket?

aliang September 2, 2020

We need to clone repository from another company's. Since their repository isn't public one, I can't use "Add Existing Repository" feature.

So, here is what we did

1. I was invited to the other company's Bitbucket. I only gave my Bitbucket's username and email address to the other company.

2. One additional workspace shown on my Bitbucket workspace list, say this workspace's name is WKSP_A

3. I want to clone repo from WKSP_A to our existing WKSP_OWN. So I am at the project of WKSP_OWN

    a. click on "+" on left panel -> Import Repository

    b. Give the URL from repo at WKSP_A. The URL was copied from WKSP_A repo with syntax https://<my username>@bitbucket.org/<WKSP_A>/<repo name>.git

    c. Fill in my current workspace name WKSP_OWN, project name and repo name that I want in my WKSP_OWN

    d. click on "Import repository", below is the error msg. I am attaching the screenshot of the error msg as well.

(below is text version)

Importing repository

We're getting things warm and cozy for your code.

Your import has failed. For more information, check the log below. You can also try your import again.

  1. 16:31:39 git import for: https://bitbucket.org/WKSP_A/<repo_name>.git
  2. 16:31:39 Cloning https://bitbucket.org/WKSP_A/<repo_name>.git...
  3. 16:31:39 Cloning into bare repository '<company bitbucket name>/androidapp'...
  4. 16:31:39 remote: Invalid username or password
  5. 16:31:39 fatal: Authentication failed for 'https://<my username on Bitbucket>@bitbucket.org/WKSP_A/<repo_name>.git/'
  6. 16:31:39 Remote Git clone failed: <class 'bitbucket.apps.asyncx.tasks.ImportException'>: Command failed. Return value: 128

1 answer

0 votes
Tyler T
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 3, 2020

Are you trying to fork the repository or work directly on the repository?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events