Document git read-tree --trivial
[gitweb.git] / ident.c
diff --git a/ident.c b/ident.c
index 88e7f74e888f1c7b13182bf07afee01408e8e525..3d49608e6f9afe22f24a2faf70f2d6cee50b8919 100644 (file)
--- a/ident.c
+++ b/ident.c
@@ -197,6 +197,8 @@ const char *fmt_ident(const char *name, const char *email,
                name = git_default_name;
        if (!email)
                email = git_default_email;
+       if (!email)
+               email = getenv("EMAIL");
 
        if (!*name) {
                struct passwd *pw;