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.
gitea/modules/repository
zeripath 320031fce6
Handle more pathological branch and tag names (#11843) (#11863)
Backport #11843

It's possible to push quite pathological appearing branch names to gitea
using git push gitea reasonable-branch:refs/heads/-- at which point
large parts of the UI will break. Similarly you can git push origin
reasonable-tag:refs/tags/-- which wil return an error.

This PR fixes the problems these cause. It also changes the code from
creating branches to pushing to ensure that branch restoration has to
pass hooks.

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
5 years ago
..
branch.go Handle more pathological branch and tag names (#11843) (#11863) 5 years ago
check.go Refactor Cron and merge dashboard tasks (#10745) 5 years ago
commits.go make avatar lookup occur at image request (#10540) 5 years ago
commits_test.go make avatar lookup occur at image request (#10540) 5 years ago
create.go When initialising repositories ensure that the user doing the creation is the initializer (#11601) (#11608) 5 years ago
create_test.go Various fixes in login sources (#10428) 5 years ago
fork.go Fix forked repo has no icon and language stat. (#10791) 5 years ago
fork_test.go Move create/fork repository from models to modules/repository (#9489) 5 years ago
generate.go Option to set default branch at repository creation (#10803) 5 years ago
hooks.go Refactor Cron and merge dashboard tasks (#10745) 5 years ago
init.go [feature] provide `OwnerName` field for README template (#10981) 5 years ago
main_test.go Move push commits from models to modules/repository (#9370) 5 years ago
repo.go API add/generalize pagination (#9452) 5 years ago
update.go Move PushUpdateAddDeleteTags to repository module from models (#10106) 5 years ago