format-patch: do not use bogus email addresses in message ids

We can ask git_committer_info to be strict about coming up with an email, which will die automatically on a poorly configured machine. This is better than letting invalid message-ids into the wild. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed May 24, 2012 at 19:32 UTC 59f9b8a9a95cbcf4f6a5123cac04dc5073a8d0cc
1 file changed +1 -1
builtin/log.c
+1 -1
@@ -741,7 +741,7 @@ static void gen_message_id(struct rev_info *info, char *base)
741 struct strbuf buf = STRBUF_INIT;
742 strbuf_addf(&buf, "%s.%lu.git.%s", base,
743 (unsigned long) time(NULL),
744 - git_committer_info(IDENT_NO_NAME|IDENT_NO_DATE));
744 + git_committer_info(IDENT_NO_NAME|IDENT_NO_DATE|IDENT_STRICT));
745 info->message_id = strbuf_detach(&buf, NULL);
746 }
747