summaryrefslogtreecommitdiff
path: root/tree.c
diff options
context:
space:
mode:
authorThomas Rast <trast@student.ethz.ch>2011-08-29 22:10:46 +0200
committerJunio C Hamano <gitster@pobox.com>2011-08-29 15:27:01 -0700
commitcc663d141a2d900d097973a8fdcb939f697d46bd (patch)
treeb544cf66a62d8c7fc7c2e26b1f269fcfef9cbe23 /tree.c
parente7af8e49cd54f1784fa2a0e382f22ca2f98cf4d8 (diff)
downloadgit-cc663d141a2d900d097973a8fdcb939f697d46bd.tar.gz
t4014: check for empty files from git format-patch --stdout
Most kinds of failure in 'git format-patch --stdout >output' will result in an empty 'output'. This slips past checks that only verify absence of output, such as the '! grep ...' that are quite prevalent in t4014. Introduce a helper check_patch() that checks that at least From, Date and Subject are present, thus making sure it looks vaguely like a patch (or cover letter) email. Then insert calls to it in all tests that do have positive checks for content. This makes two of the tests fail. Mark them as such; they'll be fixed in a moment. Signed-off-by: Thomas Rast <trast@student.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tree.c')
0 files changed, 0 insertions, 0 deletions