Uploaded image for project: 'Bitbucket Server'
  1. Bitbucket Server
  2. BSERV-9728

Wrong branch cloned from Smart Mirror

    XMLWordPrintable

    Details

      Description

      Summary

      When changing the default branch for a repository in an upstream (primary) server, the new default branch is not cloned by default from the Smart Mirror

      Environment

      • Bitbucket Data Center + Smart Mirror

      Steps to Reproduce

      1. Create a repository in the upstream server.
      2. Set the default branch to *master.
      3. Mirror the project with the repository.
      4. Create a second branch in the repository.
      5. Set the default branch to the second branch.
      6. Clone the repository from the mirror.

      Expected Results

      The second branch will be cloned by default from the mirror.

      Actual Results

      master is cloned from the mirror.

      Notes

      • Rebuilding the mirror did not appear to resolve this issue.

      Workaround

      • Use git pull to retrieve the correct branch.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              fdoherty@atlassian.com Frank Doherty
              Reporter:
              abromberg Aaron Bromberg
              Participants:
              Votes:
              7 Vote for this issue
              Watchers:
              20 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: