mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Currently, anyone with write permissions to a repo are able to rename default or protected branches. This change follows [GitHub's](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch) design by only allowing repo/site admins to change these branches. However, it also follows are current design for protected branches and only allows admins to modify branch names == branch protection rule names. Glob-based rules cannot be renamed by anyone (as was already the case, but we now catch `ErrBranchIsProtected` which we previously did not catch, throwing a 500). |
2 months ago | |
---|---|---|
.. | ||
actions | 2 months ago | |
activities | 2 months ago | |
admin | 5 months ago | |
asymkey | 2 months ago | |
auth | 2 months ago | |
avatars | 12 months ago | |
db | 2 months ago | |
dbfs | 9 months ago | |
fixtures | 2 months ago | |
git | 3 months ago | |
issues | 2 months ago | |
migrations | 2 months ago | |
organization | 2 months ago | |
packages | 2 months ago | |
perm | 2 months ago | |
project | 2 months ago | |
pull | 2 months ago | |
renderhelper | 3 months ago | |
repo | 2 months ago | |
secret | 7 months ago | |
shared/types | 1 year ago | |
system | 1 year ago | |
unit | 4 months ago | |
unittest | 2 months ago | |
user | 2 months ago | |
webhook | 2 months ago | |
main_test.go | 1 year ago | |
repo.go | 2 months ago | |
repo_test.go | 2 months ago |