forked from gitea/gitea
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.go | ||
commits_test.go | ||
create.go | ||
create_test.go | ||
fork.go | ||
fork_test.go | ||
generate.go | ||
hooks.go | ||
init.go | ||
main_test.go | ||
repo.go | ||
update.go |