Skip to content

Migrating from Bitbucket Server to GHEC - Default branch is not retained #1438

@lavanyanooka

Description

@lavanyanooka

Description

I am doing performing repository migrations for a customer from Bitbucket server to GHEC-EMU using GEI bbs2gh tool.
For certain repositories, the default branch from the source repo is not correctly retained in the target repo.

For instance:

  • Source Repo in bitbucket server has develop branch as default branch
  • Migrate this repo using GEI bbs2gh tool
  • After migration, the target repo in GHEC has the master branch as default

Reproduction Steps

Migrate source repo in bitbucket to GHEC using the below cli command

gh bbs2gh migrate-repo --aws-bucket-name "{aws-bucket}" --bbs-server-url "{server-url}" --bbs-project "{bbs-project}" --bbs-repo "{bbs-repo}" --github-org "{github-org}" --github-repo "{github-repo}" --target-repo-visibility internal

After migration, check the default branch on Github and it does not match with the default branch on the Bitbucket server.

This is causing an issue in a 100% validation of the pre and post migration of the repositories that the customer is aiming for.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions