summaryrefslogtreecommitdiff
path: root/app/models/commit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r--app/models/commit.rb6
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