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/services
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
..
comments Refactor pull request review (#8954) 5 years ago
externalaccount Allow externalID to be UUID (#8551) 5 years ago
gitdiff Some refactor on git diff and ignore getting commit information failed on migrating pull request review comments (#9996) 5 years ago
issue Fix ref links in issue overviews for tags (#8742) 5 years ago
mailer Sendmail should create a process on the gitea system and have a default timeout (#11256) 5 years ago
mirror Refactor Cron and merge dashboard tasks (#10745) 5 years ago
pull Handle more pathological branch and tag names (#11843) (#11863) 5 years ago
release When using API CreateRelease set created_unix to the tag commit time (#11218) 5 years ago
repository API endpoint for repo transfer (#9947) 5 years ago
wiki Handle push rejection in branch and upload (#10854) 5 years ago