Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle more pathological branch and tag names (#11843) #11863

Merged
merged 2 commits into from
Jun 12, 2020

Commits on Jun 12, 2020

  1. Handle more pathological branch and tag names (go-gitea#11843)

    Backport go-gitea#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 <[email protected]>
    zeripath committed Jun 12, 2020
    Configuration menu
    Copy the full SHA
    a4fc1d7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bec27f0 View commit details
    Browse the repository at this point in the history