trailer: retitle a test and correct an in-comment message

Signed-off-by: Christian Couder <christian.couder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Christian Couder committed Aug 26, 2015 at 04:51 UTC 6262fe9ca3cd61d27ca5c5599ab46d166e5b23a2
2 files changed +3 -2
t/t7513-interpret-trailers.sh
+1 -1
@@ -99,7 +99,7 @@ test_expect_success 'with config option on the command line' '
99 test_cmp expected actual
100 '
101
102 -test_expect_success 'with message that contains only a title' '
102 +test_expect_success 'with only a title in the message' '
103 cat >expected <<-\EOF &&
104 area: change
105
trailer.c
+2 -1
@@ -748,7 +748,8 @@ static int find_trailer_start(struct strbuf **lines, int count)
748 /*
749 * Get the start of the trailers by looking starting from the end
750 * for a line with only spaces before lines with one separator.
751 - * The start cannot be the first line.
751 + * The first line must not be analyzed as the others as it
752 + * should be either the message title or a blank line.
753 */
754 for (start = count - 1; start >= 1; start--) {
755 if (lines[start]->buf[0] == comment_line_char)