summaryrefslogtreecommitdiff
path: root/app/mailers
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-02-25 17:17:24 +0100
committerDouwe Maan <douwe@gitlab.com>2015-02-25 18:14:29 +0100
commit4658e554b7129c44221a73fe8ec3b73b4b9b8b24 (patch)
treec6365ad287259f42f07323e6079d18da8d074daa /app/mailers
parentf0b78a852933a54173bb9b4ceddba44b52dc3cfa (diff)
downloadgitlab-ce-4658e554b7129c44221a73fe8ec3b73b4b9b8b24.tar.gz
Fix EmailsOnPush comparison link to include first commit.
Diffstat (limited to 'app/mailers')
-rw-r--r--app/mailers/emails/projects.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/mailers/emails/projects.rb b/app/mailers/emails/projects.rb
index 5c38601c1ba..9ea121d83a4 100644
--- a/app/mailers/emails/projects.rb
+++ b/app/mailers/emails/projects.rb
@@ -31,8 +31,8 @@ module Emails
if @commits.length > 1
@target_url = namespace_project_compare_url(@project.namespace,
@project,
- from: @commits.first,
- to: @commits.last)
+ from: Commit.new(@compare.base),
+ to: Commit.new(@compare.head))
@subject << "Deleted " if @reverse_compare
@subject << "#{@commits.length} commits: #{@commits.first.title}"
else