summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fadf488)
raw | patch | inline | side by side (parent: fadf488)
author | Junio C Hamano <gitster@pobox.com> | |
Sat, 16 Jun 2007 06:33:06 +0000 (23:33 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 16 Jun 2007 06:33:06 +0000 (23:33 -0700) |
$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>
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>
ident.c | patch | blob | history |
index 69a04b827d7805d9b29153e31e5489edb587690a..3d49608e6f9afe22f24a2faf70f2d6cee50b8919 100644 (file)
--- a/ident.c
+++ b/ident.c
setup_ident();
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;