Branch protection for pull mirrors #9421

Closed
opened 2025-11-02 08:38:15 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @kotovalexarian on GitHub (Aug 18, 2022).

Feature Description

I want branch protection against forced pushes to optionally work even when the branch is a mirror.

Use case: archiving purposes. Sometimes developers go mad and delete everything with a force push. Gitea should be able to preserse the history of Git commits.

Of couse, mirroring will fail in this case. I suggest to inform the repository owner with a notification so he will be able to decide what to do.

Screenshots

No response

Originally created by @kotovalexarian on GitHub (Aug 18, 2022). ### Feature Description I want branch protection against forced pushes to optionally work even when the branch is a mirror. Use case: archiving purposes. Sometimes developers go mad and delete everything with a force push. Gitea should be able to preserse the history of Git commits. Of couse, mirroring will fail in this case. I suggest to inform the repository owner with a notification so he will be able to decide what to do. ### Screenshots _No response_
GiteaMirror added the type/proposaltype/feature labels 2025-11-02 08:38:15 -06:00
Author
Owner

@kotovalexarian commented on GitHub (Aug 18, 2022):

Duplicate of: #14076
PR: #19165

@kotovalexarian commented on GitHub (Aug 18, 2022): Duplicate of: #14076 PR: #19165
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9421