X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=ident.c;h=b35504a8d25594a8d243ae7490733eae5a262712;hb=e13067a7499f3cbf543d4a30865c70613f055b4b;hp=ed44a5345a47d4843e8328c0f879ac925dde2b07;hpb=11a1d351cfd63cb110e725ba7aae247215b47b56;p=git.git diff --git a/ident.c b/ident.c index ed44a5345..b35504a8d 100644 --- a/ident.c +++ b/ident.c @@ -250,6 +250,9 @@ 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; return fmt_ident(getenv("GIT_COMMITTER_NAME"), getenv("GIT_COMMITTER_EMAIL"), getenv("GIT_COMMITTER_DATE"),