Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent update pull refs manually and will not affect other refs update (#31931) #31955

Merged
merged 2 commits into from
Sep 2, 2024

Commits on Sep 2, 2024

  1. Prevent update pull refs manually and will not affect other refs upda…

    …te (go-gitea#31931)
    
    All refs under `refs/pull` should only be changed from Gitea inside but
    not by pushing from outside of Gitea.
    This PR will prevent the pull refs update but allow other refs to be
    updated on the same pushing with `--mirror` operations.
    
    The main changes are to add checks on `update` hook but not
    `pre-receive` because `update` will be invoked by every ref but
    `pre-receive` will revert all changes once one ref update fails.
    lunny authored and GiteaBot committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    6ac5840 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ba0452e View commit details
    Browse the repository at this point in the history