diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-03-04 20:48:56 +0200 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-03-10 15:54:59 +0200 |
commit | 2fbe5a92eb777f038da775608d80b002833f88be (patch) | |
tree | 23522e7836be707c5e54434d949951d75905dea0 /app/models/commit.rb | |
parent | c95dfd87376bfe3913def89a34b47ad629e96073 (diff) | |
download | gitlab-ci-2fbe5a92eb777f038da775608d80b002833f88be.tar.gz |
Notify only pusher instead of commiter
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r-- | app/models/commit.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index 11b61d4..82e20f8 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -92,7 +92,11 @@ class Commit < ActiveRecord::Base def project_recipients recipients = project.email_recipients.split(' ') - recipients << git_author_email if project.email_add_committer? + + if project.email_add_committer? && push_data[:user_email].present? + recipients << push_data[:user_email] + end + recipients.uniq end |