Skip to content

Add option to limit push mirror to protected branches

In some instances not all branches need to be mirrored, and it may even be problematic to mirror branches where history is changing (e.g. bidirectional mirroring).

Proposal

  • Add option to Only mirror protected branches
  • Default to true for new mirrored repositories, so that mirroring is fast by default (see #3832 (closed))

Links / references

https://gitlab.com/gitlab-org/gitlab-ee/issues/3745

Documentation blurb

Overview

What is it? Why should someone use this feature? What is the underlying (business) problem? How do you use this feature?

Use cases

Who is this for? Provide one or more use cases.

Feature checklist

Make sure these are completed before closing the issue, with a link to the relevant commit.