From 1b6b9510e0724bfcb4250f703ddf99d1e4020bbc Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 27 Oct 2010 20:51:07 +0200 Subject: Fixed bug that would cause the author's email to be a generic default one, instead of the existing and valid. The rest of the ConfigParser handling is correct, as it reads all configuration files available to git see http://github.com/Byron/GitPython/issues#issue/1 --- lib/git/objects/commit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/git/objects/commit.py') diff --git a/lib/git/objects/commit.py b/lib/git/objects/commit.py index c7da01e8..58c82da2 100644 --- a/lib/git/objects/commit.py +++ b/lib/git/objects/commit.py @@ -52,8 +52,8 @@ class Commit(base.Object, Iterable, Diffable, Traversable, Serializable): env_email = "EMAIL" # CONFIGURATION KEYS - conf_email = 'email' conf_name = 'name' + conf_email = 'email' conf_encoding = 'i18n.commitencoding' # INVARIANTS @@ -294,7 +294,7 @@ class Commit(base.Object, Iterable, Diffable, Traversable, Serializable): conf_email = cr.get_value('user', cls.conf_email, default_email) author_name = env.get(cls.env_author_name, conf_name) - author_email = env.get(cls.env_author_email, default_email) + author_email = env.get(cls.env_author_email, conf_email) committer_name = env.get(cls.env_committer_name, conf_name) committer_email = env.get(cls.env_committer_email, conf_email) -- cgit v1.2.1