Skip to content

Prune tags when fetching

What does this MR do?

Add the pruning tags at git fetch level.

Why was this MR needed?

CI/CD jobs playing with tags (like semantic-release) need an effective status of the tags. If some of them were removed between two pipelines, the removed ones should not remain in the local copy.

What's the best way to test this MR?

  1. Create a tag
  2. Run CI job displaying tags
  3. Remove the tag
  4. Same as 2

What are the relevant issue numbers?

Merge request reports