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 incomplete diff files properly #13662

Merged

Commits on Nov 21, 2020

  1. Handle incomplete diff files properly

    The code for parsing diff hunks has a bug whereby a very long line
    in a very long diff would not be completely read leading to an unexpected
    character.
    
    This PR ensures that the line is completely cleared
    
    Fix go-gitea#13602
    
    Signed-off-by: Andrew Thornton <art27@cantab.net>
    zeripath committed Nov 21, 2020
    Configuration menu
    Copy the full SHA
    132a960 View commit details
    Browse the repository at this point in the history
  2. Also allow git max line length <4096

    Signed-off-by: Andrew Thornton <art27@cantab.net>
    zeripath committed Nov 21, 2020
    Configuration menu
    Copy the full SHA
    aff67ba View commit details
    Browse the repository at this point in the history
  3. Add test case

    Signed-off-by: Andrew Thornton <art27@cantab.net>
    zeripath committed Nov 21, 2020
    Configuration menu
    Copy the full SHA
    8d289d7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    95c5422 View commit details
    Browse the repository at this point in the history