summaryrefslogtreecommitdiff
path: root/tests/corrupt-patch
Commit message (Collapse)AuthorAgeFilesLines
* Don't require traditional patch header after "git --diff"Andreas Gruenbacher2015-03-091-0/+33
Reported by Tim Waugh <twaugh@redhat.com>. * src/pch.c (intuit_diff_type): Don't require a traditional patch header ("--- old\n+++ new/n") after a "git --diff" header; the "git --diff" header gives us enough information for being able to process subsequent hunks. This deals with corrupted patches more gracefully. * tests/corrupt-patch: New test case. * tests/Makefile.am (TESTS): Add test case.