Skip to content
GitLab Next
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLab FOSSGitLab FOSS
  • Issues
  • #61563
Closed
Open
Created May 07, 2019 by Amanda Rueda@amandarueda☕Developer

Mirroring repositories doesn't work: 2:Fetching remote upstream failed

Problem to solve

The behavior of Git changed in 2.20.0, which now causes mirroring to fail if tags have diverged:

* The rules used by "git push" and "git fetch" to determine if a ref
   can or cannot be updated were inconsistent; specifically, fetching
   to update existing tags were allowed even though tags are supposed
   to be unmoving anchoring points.  "git fetch" was taught to forbid
   updates to existing tags without the "--force" option.

We have received multiple reports related to Mirror repository functionality not working properly.

Similar to https://gitlab.com/gitlab-org/gitlab-ce/issues/55729

Further details

We currently have an option to force mirror changes from upstream, or allow branches to diverge. We should allow similar behavior for tags.

Proposal

  • Change Overwrite diverged branches button to Overwrite diverged branches and tags
  • if this button is checked, then we will use --force to overwrite tags if the tags have been modified in the remote

Links / references

Customer Reports:

  • https://gitlab.zendesk.com/agent/tickets/120847 (internal)
  • https://gitlab.zendesk.com/agent/tickets/120852 (internal)
Edited May 16, 2019 by James Ramsay (ex-GitLab)
Assignee
Assign to
Time tracking