Respect notify option when pushing new changes

Users can add a notify option to the push spec to control to whom
email notifications should be sent, but the notify option had no
effect when a new change was pushed.

Change-Id: Ie802526ef486f3a36da1b4ac6ec4ada07026efa1
Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
Edwin Kempin
2016-03-13 16:07:12 +01:00
parent 1c85f2159c
commit 27ddb9f231
3 changed files with 44 additions and 0 deletions

View File

@@ -1775,6 +1775,7 @@ public class ReceiveCommits {
.setExtraCC(recipients.getCcOnly())
.setApprovals(approvals)
.setMessage(msg)
.setNotify(magicBranch.notify)
.setRequestScopePropagator(requestScopePropagator)
.setSendMail(true)
.setUpdateRef(true));