mirror of
https://github.com/go-gitea/gitea
synced 2024-11-07 10:44:26 +00:00
320031fce6
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> |
||
---|---|---|
.. | ||
branch.go | ||
check.go | ||
commits_test.go | ||
commits.go | ||
create_test.go | ||
create.go | ||
fork_test.go | ||
fork.go | ||
generate.go | ||
hooks.go | ||
init.go | ||
main_test.go | ||
repo.go | ||
update.go |