summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2013-02-28 15:14:34 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2013-03-01 11:34:29 +0000
commitc417076fb338ff544129a8211d588aa06fe20e46 (patch)
tree24733ca2b623239929f787fbb0621fa01ffa1122
parentff7980a4ddadbcad93acecaa94cdcfa2c6c8c244 (diff)
downloaddefinitions-c417076fb338ff544129a8211d588aa06fe20e46.tar.gz
B&M: Commit to build branches with user's email
While it may be useful to have the username and machine the commit was made on, it's more useful to have the committer's email address, and the email field is for email addresses.
-rw-r--r--morphlib/plugins/branch_and_merge_plugin.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/morphlib/plugins/branch_and_merge_plugin.py b/morphlib/plugins/branch_and_merge_plugin.py
index cbc41acf..cb109676 100644
--- a/morphlib/plugins/branch_and_merge_plugin.py
+++ b/morphlib/plugins/branch_and_merge_plugin.py
@@ -1629,8 +1629,7 @@ class BranchAndMergePlugin(cliapp.Plugin):
# Define the committer.
committer_name = 'Morph (on behalf of %s)' % \
(morphlib.git.get_user_name(self.app.runcmd))
- committer_email = '%s@%s' % \
- (os.environ.get('LOGNAME'), socket.gethostname())
+ committer_email = morphlib.git.get_user_email(self.app.runcmd)
for repo, info in build_repos.iteritems():
repo_dir = info['dirname']