X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=ident.c;h=b35504a8d25594a8d243ae7490733eae5a262712;hb=66aafad5e43815e5f54634e4ef787cd759388880;hp=b839dcf5f085a94080e1f7891f3fb40ed151a394;hpb=67cdec1e58f1f9bc17d500b04e856042e0b2bf59;p=git.git diff --git a/ident.c b/ident.c index b839dcf5f..b35504a8d 100644 --- a/ident.c +++ b/ident.c @@ -171,7 +171,7 @@ static const char au_env[] = "GIT_AUTHOR_NAME"; static const char co_env[] = "GIT_COMMITTER_NAME"; static const char *env_hint = "\n" -"*** Your name cannot be determined from your system services (gecos).\n" +"*** Please tell me who you are.\n" "\n" "Run\n" "\n" @@ -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"),