X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=ident.c;fp=ident.c;h=e67c5ad1e8800250f17793bc826d608429d08ae3;hb=91c38a21089c4b30d35f392386c752a017ac6db0;hp=e6c1798d9814d3a4d9d58a5097523f4b0dd16258;hpb=18e95f279ec62cc8d5e5ab709b162ccc55eebf0a;p=git.git diff --git a/ident.c b/ident.c index e6c1798d9..e67c5ad1e 100644 --- a/ident.c +++ b/ident.c @@ -249,9 +249,10 @@ const char *git_author_info(int flag) const char *git_committer_info(int flag) { - if (getenv("GIT_COMMITTER_NAME") && - getenv("GIT_COMMITTER_EMAIL")) - user_ident_explicitly_given = 1; + if (getenv("GIT_COMMITTER_NAME")) + user_ident_explicitly_given |= IDENT_NAME_GIVEN; + if (getenv("GIT_COMMITTER_EMAIL")) + user_ident_explicitly_given |= IDENT_MAIL_GIVEN; return fmt_ident(getenv("GIT_COMMITTER_NAME"), getenv("GIT_COMMITTER_EMAIL"), getenv("GIT_COMMITTER_DATE"),