diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2013-02-28 15:14:34 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2013-03-01 11:34:29 +0000 |
commit | c417076fb338ff544129a8211d588aa06fe20e46 (patch) | |
tree | 24733ca2b623239929f787fbb0621fa01ffa1122 /morphlib/plugins/branch_and_merge_plugin.py | |
parent | ff7980a4ddadbcad93acecaa94cdcfa2c6c8c244 (diff) | |
download | morph-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.
Diffstat (limited to 'morphlib/plugins/branch_and_merge_plugin.py')
-rw-r--r-- | morphlib/plugins/branch_and_merge_plugin.py | 3 |
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'] |