1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-06-13 19:06:40 +02:00

In handle_body only read a line if we don't already have one.

This prepares for detecting non-email patches that don't have
mail headers.  In which case we have already read the first
line so handle_body should not ignore it.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Eric W. Biederman 2006-05-23 13:49:00 -06:00 committed by Junio C Hamano
parent 8b4525fb3c
commit 1f36bee67e

View File

@ -724,7 +724,7 @@ static void handle_body(void)
{
int seen = 0;
if (fgets(line, sizeof(line), stdin) != NULL) {
if (line[0] || fgets(line, sizeof(line), stdin) != NULL) {
handle_commit_msg(&seen);
handle_patch();
}