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 | |
---|---|---|
.. | ||
archiver | 4 weeks ago | |
commitstatus | 3 months ago | |
files | 2 months ago | |
adopt.go | 2 months ago | |
adopt_test.go | 3 months ago | |
avatar.go | 2 months ago | |
avatar_test.go | 2 months ago | |
branch.go | 3 weeks ago | |
cache.go | 1 year ago | |
check.go | 2 months ago | |
collaboration.go | 2 months ago | |
collaboration_test.go | 3 months ago | |
commit.go | 12 months ago | |
contributors_graph.go | 10 months ago | |
contributors_graph_test.go | 3 months ago | |
create.go | 1 month ago | |
delete.go | 2 months ago | |
delete_test.go | 1 year ago | |
fork.go | 2 months ago | |
fork_test.go | 2 years ago | |
generate.go | 1 month ago | |
generate_test.go | 12 months ago | |
hooks.go | 1 year ago | |
init.go | 2 months ago | |
lfs.go | 12 months ago | |
lfs_test.go | 1 year ago | |
license.go | 4 months ago | |
license_test.go | 2 months ago | |
main_test.go | 1 year ago | |
merge_upstream.go | 4 weeks ago | |
migrate.go | 1 month ago | |
push.go | 4 weeks ago | |
repo_team.go | 2 months ago | |
repo_team_test.go | 2 months ago | |
repository.go | 4 months ago | |
repository_test.go | 2 years ago | |
setting.go | 1 year ago | |
template.go | 12 months ago | |
transfer.go | 2 months ago | |
transfer_test.go | 2 months ago |