summaryrefslogtreecommitdiff
path: root/mailinfo.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-06-10 03:04:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-06-10 03:04:22 (GMT)
commit26b25e03b204548d08fd6a284f24c65ef2cbcba0 (patch)
treead6236095426ea7a1f39d6c851095c94ff27aea7 /mailinfo.c
parentebf3c04b262aa27fbb97f8a0156c2347fecafafb (diff)
parent72ee47ceebc7d3ddbd31942b28f9fe47f00b0540 (diff)
downloadgit-26b25e03b204548d08fd6a284f24c65ef2cbcba0.zip
git-26b25e03b204548d08fd6a284f24c65ef2cbcba0.tar.gz
git-26b25e03b204548d08fd6a284f24c65ef2cbcba0.tar.bz2
Merge branch 'ef/mailinfo-short-name'
We historically rejected a very short string as an author name while accepting a patch e-mail, which has been loosened. * ef/mailinfo-short-name: mailinfo: don't discard names under 3 characters
Diffstat (limited to 'mailinfo.c')
-rw-r--r--mailinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mailinfo.c b/mailinfo.c
index ccc6beb..184ed8d 100644
--- a/mailinfo.c
+++ b/mailinfo.c
@@ -19,7 +19,7 @@ static void cleanup_space(struct strbuf *sb)
static void get_sane_name(struct strbuf *out, struct strbuf *name, struct strbuf *email)
{
struct strbuf *src = name;
- if (name->len < 3 || 60 < name->len || strpbrk(name->buf, "@<>"))
+ if (!name->len || 60 < name->len || strpbrk(name->buf, "@<>"))
src = email;
else if (name == out)
return;