jenkinsci/git-plugin — pull request #80 by thomaschriskelly (2012-08-06 20:51:20+00:00)
Title: Changed if statement for setting git user's email address such that it is actually run when creating a new user

Using git, user.getProperty(Mailer.UserProperty.class) never ends up being null, and an email address never gets set.

Just set the email address no matter what (provided one is given). If a user changes their git email address, we want them to get the email to their new address anyways. This wouldn't happen if bob@hotmail.com switches to bob@gmail.com; the username remains 'bob'.