ident: reject bogus email addresses with IDENT_STRICT
commit8c5b1ae1b26a7512eb29e75391b8b24c0d0439e7
authorJeff King <peff@peff.net>
Thu, 24 May 2012 23:32:37 +0000 (24 19:32 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 25 May 2012 03:50:05 +0000 (24 20:50 -0700)
tree2fc42fae466db557ad30b66045b824b8f0b6c758
parentf9bc573fdaeaf8621008f3f49aaaa64869791691
ident: reject bogus email addresses with IDENT_STRICT

If we come up with a hostname like "foo.(none)" because the
user's machine is not fully qualified, we should reject this
in strict mode (e.g., when we are making a commit object),
just as we reject an empty gecos username.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ident.c