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). |
3 weeks ago | |
---|---|---|
.. | ||
actions | 4 weeks ago | |
activities | 4 weeks ago | |
admin | 4 months ago | |
asymkey | 4 weeks ago | |
auth | 1 month ago | |
avatars | 11 months ago | |
db | 4 weeks ago | |
dbfs | 8 months ago | |
fixtures | 3 weeks ago | |
git | 2 months ago | |
issues | 4 weeks ago | |
migrations | 4 weeks ago | |
organization | 4 weeks ago | |
packages | 1 month ago | |
perm | 3 weeks ago | |
project | 1 month ago | |
pull | 4 weeks ago | |
renderhelper | 2 months ago | |
repo | 3 weeks ago | |
secret | 6 months ago | |
shared/types | 12 months ago | |
system | 1 year ago | |
unit | 3 months ago | |
unittest | 3 weeks ago | |
user | 4 weeks ago | |
webhook | 4 weeks ago | |
main_test.go | 1 year ago | |
repo.go | 1 month ago | |
repo_test.go | 1 month ago |