summaryrefslogtreecommitdiff
path: root/builtin/log.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2012-05-24 23:32:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-05-25 03:50:19 (GMT)
commit59f9b8a9a95cbcf4f6a5123cac04dc5073a8d0cc (patch)
treefd80d8dd66246507934acb9723220309c4f65603 /builtin/log.c
parent8c5b1ae1b26a7512eb29e75391b8b24c0d0439e7 (diff)
downloadgit-59f9b8a9a95cbcf4f6a5123cac04dc5073a8d0cc.zip
git-59f9b8a9a95cbcf4f6a5123cac04dc5073a8d0cc.tar.gz
git-59f9b8a9a95cbcf4f6a5123cac04dc5073a8d0cc.tar.bz2
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>
Diffstat (limited to 'builtin/log.c')
-rw-r--r--builtin/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/log.c b/builtin/log.c
index d86bca3..906dca4 100644
--- a/builtin/log.c
+++ b/builtin/log.c
@@ -741,7 +741,7 @@ static void gen_message_id(struct rev_info *info, char *base)
struct strbuf buf = STRBUF_INIT;
strbuf_addf(&buf, "%s.%lu.git.%s", base,
(unsigned long) time(NULL),
- git_committer_info(IDENT_NO_NAME|IDENT_NO_DATE));
+ git_committer_info(IDENT_NO_NAME|IDENT_NO_DATE|IDENT_STRICT));
info->message_id = strbuf_detach(&buf, NULL);
}