{"thread":{"id":"8447","subject":"[PATCH] $EMAIL is a last resort fallback, as it's system-wide.","startedAt":"2007-06-05T16:40:41Z","lastAt":"2007-06-05T16:40:41Z","messageCount":1,"participants":["Pierre Habouzit"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"44084","messageId":"11810616414135-git-send-email-madcoder@debian.org","threadId":"8447","inReplyTo":null,"subject":"[PATCH] $EMAIL is a last resort fallback, as it's system-wide.","fromName":"Pierre Habouzit","fromEmail":"madcoder@debian.org","sentAt":"2007-06-05T16:40:41Z","receivedAt":"2007-06-05T16:40:41Z","isPatch":true,"sender":{"key":"madcoder@debian.org","avatar":"https://avatars.githubusercontent.com/u/44708?v=4"},"body":"  Rationale: $EMAIL is a system-wide setup that is used for many many many\napplications. If the git user chose a specific user.email setup, then _this_\nshould be honoured rather than $EMAIL.\n\nSigned-off-by: Pierre Habouzit <madcoder@debian.org>\n---\n ident.c |    4 ++--\n 1 files changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/ident.c b/ident.c\nindex 69a04b8..3d49608 100644\n--- a/ident.c\n+++ b/ident.c\n@@ -196,9 +196,9 @@ const char *fmt_ident(const char *name, const char *email,\n \tif (!name)\n \t\tname = git_default_name;\n \tif (!email)\n-\t\temail = getenv(\"EMAIL\");\n-\tif (!email)\n \t\temail = git_default_email;\n+\tif (!email)\n+\t\temail = getenv(\"EMAIL\");\n \n \tif (!*name) {\n \t\tstruct passwd *pw;\n-- \n1.5.2.1\n"}]}