зеркало из https://github.com/microsoft/git.git
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
This commit is contained in:
Коммит
26b25e03b2
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче