summaryrefslogtreecommitdiffstats
path: root/routers/admin/admin.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-06-12 19:01:44 +0100
committerGitHub <noreply@github.com>2020-06-12 14:01:44 -0400
commit320031fce693ffe8869da952f3f872b46d3d6550 (patch)
tree577a6f0d379ccdc933f6955ff5b064e42a38c858 /routers/admin/admin.go
parentef2f18964e86634383e78b7960781dce950abe59 (diff)
downloadgitea-320031fce693ffe8869da952f3f872b46d3d6550.tar.gz
gitea-320031fce693ffe8869da952f3f872b46d3d6550.zip
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>
Diffstat (limited to 'routers/admin/admin.go')
0 files changed, 0 insertions, 0 deletions