diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-06-15 23:33:06 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-06-15 23:33:06 -0700 |
commit | 1367214417ee55266ab951cf198bf1aa7e051965 (patch) | |
tree | 7ed11b238a27af814a2b725ae5be43d93238a41a | |
parent | merge-recursive: refuse to merge binary files (diff) | |
download | tgif-1367214417ee55266ab951cf198bf1aa7e051965.tar.xz |
$EMAIL is a last resort fallback, as it's system-wide.
$EMAIL is a system-wide setup that is used for many many many
applications. If the git user chose a specific user.email setup,
then _this_ should be honoured rather than $EMAIL.
[jc: cherry-picked ec563e8 from 'master']
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | ident.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -196,9 +196,9 @@ const char *fmt_ident(const char *name, const char *email, if (!name) name = git_default_name; if (!email) - email = getenv("EMAIL"); - if (!email) email = git_default_email; + if (!email) + email = getenv("EMAIL"); if (!*name) { struct passwd *pw; |